#41447 closed request (fixed)
port request: 'unicode' (with 'paracode')
Reported by: | KurtPfeifle (Kurt Pfeifle) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: |
Description
'unicode' is a command line utility (written in Python) to query the Unicode database.
It works similar to the textproc/ascii
package, but for unicode. To see what it can do, I provide a three small examples, which all produce the same output:
unicode 00E1
unicode á
unicode 'latin small letter a with acute'
$> unicode 00E1 U+00E1 LATIN SMALL LETTER A WITH ACUTE UTF-8: c3 a1 UTF-16BE: 00e1 Decimal: á á (Á) Uppercase: U+00C1 Category: Ll (Letter, Lowercase) Bidi: L (Left-to-Right) Decomposition: 0061 0301
Upstream sources here: http://kassiopeia.juls.savba.sk/~garabik/software/unicode/
Change History (5)
comment:1 Changed 11 years ago by KurtPfeifle (Kurt Pfeifle)
comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Status: | new → assigned |
Thanks for the suggestion.
comment:3 follow-up: 5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
I've added new ports "unicode" and "paracode" in r113585. Does that work for you?
comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Updated the unicode port to use python33 in r113587, which fixes the error:
ValueError: unichr() arg not in range(0x10000) (narrow Python build) The codepoint is too big. Perhaps your python interpreter is not compiled with wide unicode characters.
comment:5 Changed 11 years ago by KurtPfeifle (Kurt Pfeifle)
Replying to ryandesign@…:
I've added new ports "unicode" and "paracode" in r113585. Does that work for you?
Oh yes, it works fine! :-)
$> paracode -r -t mirror 'MacPorts is cool!' ¡looɔ sı̣ sʇɹoԀɔɐW
Thanks a lot for providing this new port so fast! I appreciate it very much.
Note: See
TracTickets for help on using
tickets.
I forgot: you can also query a range of Unicode characters, using
..
to separate upper and lower boundaries. The resulting output will be a nicely formatted table: