name2csv

command module
v0.0.0-...-5f0753b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 6 Imported by: 0

README

name2csv

將ttx對name表的輸出,改用csv來顯示

INSTALL

go install github.com/CarsonSlovoka/name2csv@latest
git clone https://github.com/CarsonSlovoka/name2csv.git
cd name2csv
go install .

USAGE

:%!name2csv     -- 請不要有其它的tag, 例如ttFont
'<,'>!name2csv

測試文本

<name>
  <namerecord nameID="0" platformID="1" platEncID="0" langID="0x0" unicode="True">
    Copyright © 2025 ... All rights reserved.
  </namerecord>
  <namerecord nameID="1" platformID="1" platEncID="0" langID="0x0" unicode="True">
    Qoo
  </namerecord>
  <namerecord nameID="2" platformID="1" platEncID="0" langID="0x0" unicode="True">
    Ultralight
  </namerecord>
  <namerecord nameID="5" platformID="1" platEncID="0" langID="0x0" unicode="True">
    Version 1.000
  </namerecord>
</name>

outout:

platformID,platEncID,langID,nameID,text
1,0,0x0,0,Copyright © 2025 ... All rights reserved.
1,0,0x0,1,Qoo
1,0,0x0,2,Ultralight
1,0,0x0,5,Version 1.000

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL