Get the net weight string of a given string.
Get the net weight string of a given string. Net weight strings are calculated as follows:
Replace empty strings by a zero width space (Unicode 0x200B).
Replace all UTF-8 letters by their (Unicode) tags <0xXXXX>.
If the strings begins with %!TT, remove the ParaStyle right behind %!TT.
Replace all other ParaStyles by paragraph delimiters (hard returns).
Remove all remaining TaggedText tags.
Replace every double quota by " and every singe quota by '.
Replace every blank (Unicode 0x2000 - 0x200F) by space.
Replace every hyphenation sign (Unicode 0x2010 - 0x2016) by minus.
-
Name |
Type |
Default |
Description |
Return
|
char* |
|
result is returned as result
|
result
|
char* |
-
|
allocated string for the net weight string
|
str
|
char* |
-
|
base string
|
convertUniTags
|
int |
0
|
Auto replace Unicode tags of form <0x200B>?
0 : No
otherwise : yes
|
replaceTypos
|
int |
0
|
Replace quotes, blanks and hyphens by unique letters?
0 : No
otherwise : yes
|
- Since
- v3.3.1 R3810, 28. May 2013
- Available
- priint:comet InDesign® Plug-Ins, comet_pdf
- See Also
comet.string.getNetWeight
Alphabetic index HTML hierarchy of classes or Java