Sponsored Content
Top Forums Shell Programming and Scripting Shell scripting on Windows platform Post 302446227 by citaylor on Wednesday 18th of August 2010 04:53:46 AM
Old 08-18-2010
Perl is also a good cross-platform scripting language and is available as an installable msi for windows.
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

checking the size of unix cd on windows platform

Hi, Is it possible or is there a program out there that can get the byte size of a unix cd on the windows platform. Any help would be really great with this. Thanks (2 Replies)
Discussion started by: johnjsm
2 Replies

2. Solaris

Windows & Sun Dual boot on x86 platform...possible??

My first thread from Kuwait Peace Land :) is it possible to make dual boot on my PC between Win XP and Solaris 9 and above?? if yes , how to do?? Thanks (1 Reply)
Discussion started by: AboJasim
1 Replies

3. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

4. UNIX for Dummies Questions & Answers

Exporting Files from Unix to a Windows Platform

I was able to convert my csv file in Unix to xls. I would like to export the converted xls file to a windows environment. I have to manually connect using the following below: ftp: 192.x.x.x -> username/pass -> cd -> mget *.xls and then confirm. Could I automate this process into a shell... (4 Replies)
Discussion started by: ravzter
4 Replies

5. AIX

how to allow Windows platform to access Unix based disk volumes

How to allow Windows platform to access Unix(AIX) based disk volumes? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

6. UNIX for Dummies Questions & Answers

FTP from Windows XP platform to HP-UNIX10.20 machine apllications

Hi Friends Pl. clarify the following. 1. By using ftp hostname we can connect each other as long as within the n/w. Provided user name and password. 2. Using mget****(required files with extension) can trasnsfer all the files(text as well as graphical formats). 3. How we can reproduce the... (2 Replies)
Discussion started by: mohamedfaizyka
2 Replies

7. UNIX for Dummies Questions & Answers

Need help configuring Active Perl on Windows Vista.: Perl Scripting on Windows

Hi All, Need help configuring Active Perl on Windows Vista. I am trying to install Active Perl on Windows Vista. The version of Active Perl i am trying to install is : ActivePerl 5.10.1 Build 1006 After installing it through cmd, When i try to run perl -v to check the version, i get the... (2 Replies)
Discussion started by: Vabiosis
2 Replies

8. Shell Programming and Scripting

PERL: testing directory on windows platform

Hi Gurus, kindly analyse the following for me, please OS: Windows 7 Code location: C:\ Output: "Program Files not being recognised" "System Volume Information is a directory" "Windows not being recognised" main { my @dirlist = <*>; foreach my $fn... (0 Replies)
Discussion started by: biglau
0 Replies

9. Shell Programming and Scripting

C Shell Scripting on SUA windows 7

hi, Even $eType is BSD_8GB echo $eType switch ( $eType ) case BSD_8GB: case BSD_12GB: echo "excuted BSD_8GB & BSD_12GB" breaksw default: echo "default" exit 0 endsw Result always default case printing. Please help.... (5 Replies)
Discussion started by: gthangav
5 Replies

10. AIX

Adding CR to ascii data file generated on AIX platform and will be transmitted to Windows OS

I desperately need help converting ascii data file generated on AIX platform that contains dollar sign ($) at the end of each line in the data file as shown below. ME570^0128237^HG278999^20140805:21:00:00^BEENZ001^$ This is the AWK command for adding CR to the new line. awk... (1 Reply)
Discussion started by: cumeh1624
1 Replies
Font::TTF::Name(3)					User Contributed Perl Documentation					Font::TTF::Name(3)

NAME
Font::TTF::Name - String table for a TTF font DESCRIPTION
Strings are held by number, platform, encoding and language. Strings are accessed as: $f->{'name'}{'strings'}[$number][$platform_id][$encoding_id]{$language_id} Notice that the language is held in an associative array due to its sparse nature on some platforms such as Microsoft ($pid = 3). Notice also that the array order is different from the stored array order (platform, encoding, language, number) to allow for easy manipulation of strings by number (which is what I guess most people will want to do). By default, $Font::TTF::Name::utf8 is set to 1, and strings will be stored as UTF8 wherever possible. The method "is_utf8" can be used to find out if a string in a particular platform and encoding will be returned as UTF8. Unicode strings are always converted if utf8 is requested. Otherwise, strings are stored according to platform: You now have to set <$Font::TTF::Name::utf8> to 0 to get the old behaviour. Apple Unicode (platform id = 0) Data is stored as network ordered UCS2. There is no encoding id for this platform but there are language ids as per Mac language ids. Mac (platform id = 1) Data is stored as 8-bit binary data, leaving the interpretation to the user according to encoding id. Unicode (platform id = 2) Currently stored as 16-bit network ordered UCS2. Upon release of Perl 5.005 this will change to utf8 assuming current UCS2 semantics for all encoding ids. Windows (platform id = 3) As per Unicode, the data is currently stored as 16-bit network ordered UCS2. Upon release of Perl 5.005 this will change to utf8 assuming current UCS2 semantics for all encoding ids. INSTANCE VARIABLES
strings An array of arrays, etc. METHODS
$t->read Reads all the names into memory $t->out($fh) Writes out all the strings $t->XML_element($context, $depth, $key, $value) Outputs the string element in nice XML (which is all the table really!) $t->XML_end($context, $tag, %attrs) Store strings in the right place is_utf8($pid, $eid) Returns whether a string of a given platform and encoding is going to be in UTF8 find_name($nid) Hunts down a name in all the standard places and returns the string and for an array context the pid, eid & lid as well remove_name($nid) Removes all strings with the given name id from the table. set_name($nid, $str[, $lang[, @cover]]) Sets the given name id string to $str for all platforms and encodings that this module can handle. If $lang is set, it is interpretted as a language tag and if the particular language of a string is found to match, then that string is changed, otherwise no change occurs. If supplied, @cover should be a list of references to two-element arrays containing pid,eid pairs that should be added to the name table if not already present. This function does not add any names to the table unless @cover is supplied. Font::TTF::Name->match_lang($pid, $lid, $lang) Compares the language associated to the string of given platform and language with the given language tag. If the language matches the tag (i.e. is equal or more defined than the given language tag) returns true. This is calculated by finding whether the associated language tag starts with the given language tag. Font::TTF::Name->get_lang($pid, $lid) Returns the language tag associated with a particular platform and language id Font::TTF::Name->find_lang($pid, $lang) Looks up the language name and returns a lang id if one exists Font::TTF::Name->pe_list() Returns an array of references to two-element arrays containing pid,eid pairs that already exist in this name table. Useful for creating @cover parameter to set_name(). BUGS
o Unicode type strings will be stored in utf8 for all known platforms, once Perl 5.6 has been released and I can find all the mapping tables, etc. AUTHOR
Martin Hosken Martin_Hosken@sil.org. See Font::TTF::Font for copyright and licensing. perl v5.16.3 2012-07-24 Font::TTF::Name(3)
All times are GMT -4. The time now is 10:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy