Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / language-tools / | server ip : 104.21.89.46 your ip : 172.70.127.176 H O M E |
Filename | /usr/share/language-tools/locale2papersize |
Size | 319 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:54 |
Last modified | 18-Jan-2014 02:14 |
Last accessed | 05-Jul-2025 01:04 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh -e
#
# locale2papersize outputs the paper size "a4" or "letter" based on
# the height and width in the locale that is passed as an argument.
export LC_PAPER=$1
height=$( locale height )
width=$( locale width )
if [ "$height" = 279 -a "$width" = 216 ]; then
size=letter
else
size=a4
fi
echo $size
#
# locale2papersize outputs the paper size "a4" or "letter" based on
# the height and width in the locale that is passed as an argument.
export LC_PAPER=$1
height=$( locale height )
width=$( locale width )
if [ "$height" = 279 -a "$width" = 216 ]; then
size=letter
else
size=a4
fi
echo $size