樹心幽徑

20180925xml2e.c將gpx航跡檔轉存為csv文字檔
2018/09/25,20:08

(1)code: xml2e.c

(2) inputfile :20180915midlake.gpx

20180923崙埤子山越中嶺古道0915崙埤山0318崙埤池中嶺池山OReal.gpx

(3)compile

treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ g++ `xml2-config --cflags` xml2e.c `xml2-config --libs`

(4)excute

treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ ./a.out 20180915midlake.gpx

0:[001大同郵局] 1:[001大同鄉公所] 2:[002涼亭] 3:[002紅土咖啡岔] 4:[003斗嫩橋岔] 5:[003朝陽巷土岔] 6:[004大彎岔] 7:[004柵欄] 8:[005] 9:[005造林地] 10:[006坡岔] 11:[006昔停車處] 12:[007登山口] 13:[007紅土咖啡口] 14:[008岔] 15:[008崙埤山岔] 16:[009古道岔] 17:[009折返岔] 18:[010] 19:[011] 20:[011崙埤池岔] 21:[012土岔] 22:[012崙埤池] 23:[013] 24:[013告示牌] 25:[014崙埤池岔] 26:[014果園P] 27:[015溪溝路岔] 28:[015稜岔] 29:[016崙埤子山] 30:[017_760m] 31:[017十字岔] 32:[018_785峰] 33:[018上稜岔] 34:[019] 35:[019中嶺池岔] 36:[020] 37:[020山頭] 38:[021] 39:[021中嶺池] 40:[022] 41:[022山頭] 42:[023] 43:[023中嶺山岔] 44:[024_745折返] 45:[024牌] 46:[025] 47:[025中嶺山] 48:[026] 49:[027崙埤子山] 50:[028] 51:[028下稜點] 52:[029小溪] 53:[029航跡岔] 54:[030果園P] 55:[031] 56:[031藍白帆] 57:[032台泥岔] 58:[032溪溝] 59:[033乾溝拉繩] 60:[033紅土咖啡岔] 61:[034中嶺駐在所] 62:[035亂石] 63:[036古道岔] 64:[037登山口] 65:[038支流溪] 66:[039柵]
<trk> 0
20180317崙埤池中嶺池中嶺山O
trkpt as follow:
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................:trkpts count =1678

Trk 0 END!!

<trk> 1
20180915崙埤子山
trkpt as follow:
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................:trkpts count =1819

Trk 1 END!!
20180915midlake.gpx (wc=67 trkc=2 ) is save as gpxout.csv ok!!

 

 

(4b)treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ ./a.out 20180923崙埤子山越中嶺古道0915崙埤山0318崙埤池中嶺池山OReal.gpx
0:[001大同郵局] 1:[001大同鄉公所] 2:[002涼亭] 3:[002紅土咖啡岔] 4:[003斗嫩橋岔] 5:[003朝陽巷土岔] 6:[004大彎岔] 7:[004柵欄] 8:[005] 9:[005造林地] 10:[006坡岔] 11:[006昔停車處] 12:[007登山口] 13:[007紅土咖啡口] 14:[008岔] 15:[008崙埤山岔] 16:[009古道岔] 17:[009折返岔] 18:[010] 19:[011] 20:[011崙埤池岔] 21:[012土岔] 22:[012崙埤池] 23:[013] 24:[013告示牌] 25:[014崙埤池岔] 26:[014果園P] 27:[015溪溝路岔] 28:[015稜岔] 29:[016崙埤子山] 30:[017_760m] 31:[017十字岔] 32:[018_785峰] 33:[018上稜岔] 34:[019] 35:[019中嶺池岔] 36:[020] 37:[020山頭] 38:[021] 39:[021中嶺池] 40:[022] 41:[022山頭] 42:[023] 43:[023中嶺山岔] 44:[024_745折返] 45:[024牌] 46:[025] 47:[025中嶺山] 48:[026] 49:[027崙埤子山] 50:[028] 51:[028下稜點] 52:[029小溪] 53:[029航跡岔] 54:[030果園P] 55:[031] 56:[031藍白帆] 57:[032台泥岔] 58:[032溪溝] 59:[033乾溝拉繩] 60:[033紅土咖啡岔] 61:[034中嶺駐在所] 62:[034宜50朝陽巷口] 63:[035亂石] 64:[035大同郵局] 65:[036古道岔] 66:[036崙埤二橋岔] 67:[037登山口] 68:[037紅土咖啡岔] 69:[038台泥岔] 70:[038支流溪] 71:[039台泥岔2] 72:[039柵] 73:[040果園P] 74:[041上稜岔] 75:[042崙埤子山] 76:[043倒木山頭] 77:[044倒木] 78:[045迷航山頭] 79:[046繞圈] 80:[047出口] 81:[048倒木路條] 82:[049] 83:[050昔返] 84:[051] 85:[052] 86:[053] 87:[054午餐空地] 88:[055] 89:[056小獵營] 90:[057] 91:[058] 92:[059] 93:[060空地岔] 94:[061崙埤社區岔] 95:[062古道岔] 96:[063] 97:[064] 98:[065古道岔] 99:[066社區岔] 100:[067空地岔] 101:[068小獵營] 102:[069空地] 103:[070注意] 104:[071小鞍] 105:[072崙埤子山] 106:[073上稜岔] 107:[074果園岔]
<trk> 0
20180317崙埤池中嶺池中嶺山O
trkpt as follow:
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................:trkpts count =1678

Trk 0 END!!

<trk> 1
20180915崙埤子山
trkpt as follow:
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................:trkpts count =1819

Trk 1 END!!

<trk> 2
20180923崙埤子山-中嶺古道
trkpt as follow:
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................:trkpts count =1665

Trk 2 END!!
20180923崙埤子山越中嶺古道0915崙埤山0318崙埤池中嶺池山OReal.gpx (wc=108 trkc=3 ) is save as gpxout.csv ok!!

 

(5)output file :  gpxout.csv

treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ cat gpxout.csv|more
id,lat,lon,high,time,name,x67,y67,x97,y97,cat
 2018-09-17T04:49:53Z,, maxlat="24.721389999613166" , maxlon="121.61008159630001" , minlat="24.676733650267124" , minlon="121.57345452345908" ,

0,"24.676764998584986", "121.61000397987664", 109,2018-03-17 07:13:35,001大同郵局,310904.24,2730317.73,311734.67,2730113.45,2018-03-17 07:13:35 p001大同郵局(310904 2730318) 109m
1,"24.677336979657412", "121.60978697240353", 153,2018-09-15 08:08:15,001大同鄉公所,310882.00,2730380.98,311712.43,2730176.71,2018-09-15 08:08:15 p001大同鄉公所(310882 2730381) 153m
2,"24.681043960154057", "121.60281800664961", 148,2018-03-17 07:20:19,002涼亭,310174.90,2730788.46,311005.33,2730584.18,2018-03-17 07:20:19 p002涼亭(310175 2730788) 148m
3,"24.686318021267653", "121.59766397438943", 226,2018-09-15 08:15:47,002紅土咖啡岔,309650.76,2731370.33,310481.18,2731166.06,2018-09-15 08:15:47 p002紅土咖啡岔(309651 2731370) 226m:

 

(6a)把第11欄的資料砍出來存為t.txt

treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ cat gpxout.csv|cut -d, -f11 > t.txt

(7a)treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ cat t.txt|grep 2018-09-15
2018-09-15 08:08:15 p001大同鄉公所(310882 2730381) 153m
2018-09-15 08:15:47 p002紅土咖啡岔(309651 2731370) 226m
2018-09-15 08:23:27 p003朝陽巷土岔(310128 2731334) 291m
2018-09-15 08:27:29 p004大彎岔(310292 2731697) 340m
2018-09-15 08:33:41 p005(310617 2731891) 384m
2018-09-15 08:37:52 p006坡岔(310607 2732045) 399m
2018-09-15 08:40:59 p007紅土咖啡口(310508 2732048) 441m
2018-09-15 08:49:04 p008岔(309938 2731970) 457m
2018-09-15 08:53:26 p009折返岔(309809 2731967) 439m
2018-09-15 08:57:23 p010(309946 2732164) 541m
2018-09-15 09:00:32 p011(309725 2732261) 614m
2018-09-15 09:02:00 p012土岔(309744 2732444) 641m
2018-09-15 09:04:32 p013(309454 2732716) 679m
2018-09-15 09:10:04 p014果園P(309483 2732945) 718m
2018-09-15 10:44:43 p015稜岔(309377 2733057) 763m
2018-09-15 10:54:24 p016崙埤子山(309397 2733071) 773m
2018-09-15 11:29:05 p017_760m(309269 2733132) 784m
2018-09-15 12:04:01 p018_785峰(309061 2733248) 780m
2018-09-15 12:31:31 p019(308994 2733247) 782m
2018-09-15 12:34:01 p020(308995 2733242) 780m
2018-09-15 12:50:52 p021(309026 2733273) 785m
2018-09-15 13:11:22 p022(308930 2733279) 777m
2018-09-15 13:43:11 p023(308814 2733315) 771m
2018-09-15 13:47:58 p024_745折返(308806 2733313) 771m
2018-09-15 14:01:18 p025(308902 2733313) 778m
2018-09-15 14:10:51 p026(308971 2733278) 788m
2018-09-15 14:55:48 p027崙埤子山(309396 2733072) 779m
2018-09-15 15:05:55 p028(309432 2733048) 769m
2018-09-15 15:10:07 p029航跡岔(309443 2733038) 755m
2018-09-15 15:22:04 p030果園P(309484 2732953) 736m
2018-09-15 15:43:14 p031(309972 2732131) 475m
2018-09-15 15:47:12 p032台泥岔(310292 2731713) 372m
2018-09-15 15:52:25 p033紅土咖啡岔(309621 2731401) 260m

 

(7b)

treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ cat gpxout.csv|cut -d, -f11 > t.txt

treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ cat t.txt|grep 2018-09-23
2018-09-23 07:07:17 p034宜50朝陽巷口(312174 2731086) 117m
2018-09-23 07:11:13 p035大同郵局(310872 2730395) 138m
2018-09-23 07:12:52 p036崙埤二橋岔(310542 2730735) 143m
2018-09-23 07:17:01 p037紅土咖啡岔(309654 2731358) 225m
2018-09-23 07:23:54 p038台泥岔(310290 2731701) 335m
2018-09-23 07:29:04 p039台泥岔2(309911 2731971) 435m
2018-09-23 07:44:03 p040果園P(309484 2732948) 695m
2018-09-23 08:36:11 p041上稜岔(309449 2733025) 746m
2018-09-23 09:03:26 p042崙埤子山(309397 2733066) 770m
2018-09-23 09:36:17 p043倒木山頭(309240 2733151) 781m
2018-09-23 09:52:25 p044倒木(309183 2733180) 773m
2018-09-23 10:31:11 p045迷航山頭(308992 2733245) 785m
2018-09-23 10:42:16 p046繞圈(309047 2733257) 787m
2018-09-23 10:51:54 p047出口(308971 2733279) 781m
2018-09-23 11:02:03 p048倒木路條(308905 2733311) 775m
2018-09-23 11:13:13 p049(308851 2733293) 772m
2018-09-23 11:21:13 p050昔返(308802 2733314) 760m
2018-09-23 11:27:56 p051(308778 2733299) 753m
2018-09-23 11:35:36 p052(308751 2733304) 752m
2018-09-23 12:03:27 p053(308695 2733313) 755m
2018-09-23 12:13:33 p054午餐空地(308668 2733321) 755m
2018-09-23 12:53:43 p055(308606 2733308) 773m
2018-09-23 12:55:49 p056小獵營(308603 2733306) 772m
2018-09-23 13:12:23 p057(308508 2733310) 765m
2018-09-23 13:26:30 p058(308465 2733310) 755m
2018-09-23 13:29:53 p059(308432 2733314) 759m
2018-09-23 13:32:57 p060空地岔(308411 2733310) 757m
2018-09-23 13:38:17 p061崙埤社區岔(308350 2733312) 750m
2018-09-23 13:42:21 p062古道岔(308258 2733325) 755m
2018-09-23 14:01:46 p063(308136 2733705) 779m
2018-09-23 14:29:21 p064(308234 2733532) 764m
2018-09-23 14:39:12 p065古道岔(308259 2733336) 749m
2018-09-23 14:45:20 p066社區岔(308342 2733309) 748m
2018-09-23 14:48:40 p067空地岔(308413 2733311) 749m
2018-09-23 15:10:16 p068小獵營(308602 2733308) 766m
2018-09-23 15:22:43 p069空地(308665 2733323) 754m
2018-09-23 16:33:27 p070注意(308965 2733282) 779m
2018-09-23 16:52:22 p071小鞍(309122 2733217) 779m
2018-09-23 17:15:47 p072崙埤子山(309392 2733071) 775m
2018-09-23 17:24:31 p073上稜岔(309450 2733034) 754m
2018-09-23 17:31:14 p074果園岔(309487 2732954) 734m
treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$

20180924在Ubuntu Linux装中文字型
2018/09/24,05:36

(1)11643全字库:https://www.cns11643.gov.tw/

(2)列出字型,有397套

treehrt@treehrt-fire:~$ fc-list|more
/usr/share/fonts/truetype/msttcorefonts/comicbd.ttf: Comic Sans MS:style=Bold,Ne
greta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfe
t,Pogrubiony,Negrito,Полужирный,Fet,Kalın,Krepko,Lodia
/usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf: Tlwg Typo:style=Bold
/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf: DejaVu Serif:style=Bold
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW MBE:style=Light
/usr/share/fonts/truetype/tlwg/TlwgTypewriter-BoldOblique.ttf: Tlwg Typewriter:s
tyle=Bold Oblique
/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/truetype/padauk/Padauk-bold.ttf: Padauk,ပိá€á€¯á€¶á€¸á€™á€²,á??á?¬á??á?¯á?¶á?¸á??á??
/usr/share/fonts/truetype/msttcorefonts/comic.ttf: Comic Sans MS:style=Regular,N
ormal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обыч
ный,Normálne,Navadno,Arrunta
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc: Noto Sans CJK JP,Noto Sans
CJK JP Bold:style=Bold,Regular
/usr/share/fonts/opentype/stix-word/STIX-BoldItalic.otf: STIX:style=Bold Italic
/usr/share/fonts/opentype/stix/STIXIntegralsUp-Bold.otf: STIXIntegralsUp:style=B
old
/usr/share/fonts/truetype/unfonts-core/UnDinaruBold.ttf: UnDinaru,은 디나루:styl
e=Bold
/usr/share/fonts/opentype/stix/STIXIntegralsUpD-Regular.otf: STIXIntegralsUpD:st
yle=Regular

:

treehrt@treehrt-fire:~$ fc-list |wc
    397    1788   48788

(3)列出支援zh-tw的中文字型,有46套

treehrt@treehrt-fire:~$ fc-list :lang=zh-tw|more
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW MBE:style=Light
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc: Noto Sans CJK JP,Noto Sans CJK JP Bold:style=Bold,Re
gular
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai CN:style=Book
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai HK:style=Book
/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai TW:style=Book
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Bold:sty
le=Bold,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc: Noto Sans CJK TC,Noto Sans CJK TC Black:style=Black
,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc: Noto Sans CJK KR,Noto Sans CJK KR Black:style=Black
,Regular
/usr/share/fonts/truetype/wqy/wqy-microhei.ttc: 文泉驛微米黑,WenQuanYi Micro Hei,文泉驿微米黑:style=Regul
ar
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Bold:sty
le=Bold,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc: Noto Sans CJK JP,Noto Sans CJK JP Medium:style=Med
ium,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc: Noto Sans CJK JP,Noto Sans CJK JP Regular:style=R
egular
/usr/share/fonts/opentype/noto/NotoSansCJK-Light.ttc: Noto Sans CJK KR,Noto Sans CJK KR Light:style=Light
,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc: Noto Sans CJK SC,Noto Sans CJK SC Black:style=Black
,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Bold:sty
le=Bold,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc: Noto Sans CJK KR,Noto Sans CJK KR Regular:style=R
egular
/usr/share/fonts/opentype/noto/NotoSansCJK-Light.ttc: Noto Sans CJK SC,Noto Sans CJK SC Light:style=Light
,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc: Noto Sans CJK KR,Noto Sans CJK KR Medium:style=Med
ium,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc: Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Bold:sty
le=Bold,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc: Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Regul
ar:style=Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc: Noto Sans CJK TC,Noto Sans CJK TC Bold:style=Bold,Re
gular
/usr/share/fonts/opentype/noto/NotoSansCJK-DemiLight.ttc: Noto Sans CJK JP,Noto Sans CJK JP DemiLight:sty
le=DemiLight,Regular
/usr/share/fonts/opentype/noto/NotoSansCJK-Thin.ttc: Noto Sans CJK JP,Noto Sans CJK JP Thin:style=Thin,Re
gular

(3b)

treehrt@treehrt-fire:~$ fc-list :lang=zh-tw|wc
     46     391    5013
treehrt@treehrt-fire:~$

 

(3c) treehrt@treehrt-fire:~$  fc-list :lang=zh | cut -d: -f2
 AR PL UMing TW MBE
 Noto Sans CJK JP,Noto Sans CJK JP Bold
 AR PL UKai CN
 AR PL UKai HK
 AR PL UKai TW
 Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Bold
 Noto Sans CJK TC,Noto Sans CJK TC Black
 Noto Sans CJK KR,Noto Sans CJK KR Black
 文泉驛微米黑,WenQuanYi Micro Hei,文泉驿微米黑
 Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Bold
 Noto Sans CJK JP,Noto Sans CJK JP Medium
 Noto Sans CJK JP,Noto Sans CJK JP Regular
 Noto Sans CJK KR,Noto Sans CJK KR Light
 Noto Sans CJK SC,Noto Sans CJK SC Black
 Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Bold
 Noto Sans CJK KR,Noto Sans CJK KR Regular
 Noto Sans CJK SC,Noto Sans CJK SC Light
 Noto Sans CJK KR,Noto Sans CJK KR Medium
 Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Bold
 Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Regular
 Noto Sans CJK TC,Noto Sans CJK TC Bold
 Noto Sans CJK JP,Noto Sans CJK JP DemiLight
 Noto Sans CJK JP,Noto Sans CJK JP Thin
 Noto Sans CJK JP,Noto Sans CJK JP Light
 Noto Sans CJK KR,Noto Sans CJK KR Thin
 Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Regular
 Noto Sans CJK SC,Noto Sans CJK SC Thin
 Noto Sans CJK SC,Noto Sans CJK SC Bold
 Noto Sans CJK TC,Noto Sans CJK TC DemiLight
 Noto Sans CJK SC,Noto Sans CJK SC Regular
 Noto Sans CJK SC,Noto Sans CJK SC DemiLight
 Noto Sans CJK TC,Noto Sans CJK TC Medium
 Noto Sans CJK JP,Noto Sans CJK JP Black
 Noto Sans CJK SC,Noto Sans CJK SC Medium
 Noto Sans CJK TC,Noto Sans CJK TC Regular
 Noto Sans CJK KR,Noto Sans CJK KR DemiLight
 AR PL UKai TW MBE
 Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Regular
 AR PL UMing TW
 AR PL UMing CN
 Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Regular
 AR PL UMing HK
 文泉驛等寬微米黑,WenQuanYi Micro Hei Mono,文泉驿等宽微米黑
 Noto Sans CJK TC,Noto Sans CJK TC Thin
 Noto Sans CJK TC,Noto Sans CJK TC Light
 Noto Sans CJK KR,Noto Sans CJK KR Bold

(3d) treehrt@treehrt-fire:~$ fc-list :lang=zh | cut -d: -f1
/usr/share/fonts/truetype/arphic/uming.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/truetype/arphic/ukai.ttc
/usr/share/fonts/truetype/arphic/ukai.ttc
/usr/share/fonts/truetype/arphic/ukai.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc
/usr/share/fonts/truetype/wqy/wqy-microhei.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Light.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Light.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-DemiLight.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Thin.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Light.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Thin.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Thin.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-DemiLight.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-DemiLight.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Black.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-DemiLight.ttc
/usr/share/fonts/truetype/arphic/ukai.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/truetype/arphic/uming.ttc
/usr/share/fonts/truetype/arphic/uming.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc
/usr/share/fonts/truetype/arphic/uming.ttc
/usr/share/fonts/truetype/wqy/wqy-microhei.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Thin.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Light.ttc
/usr/share/fonts/opentype/noto/NotoSansCJK-Bold.ttc
treehrt@treehrt-fire:~$

(3e) treehrt@treehrt-fire:~$ fc-list -f '%{family}\n' :lang=zh
Noto Sans CJK JP,Noto Sans CJK JP Thin
Noto Sans CJK TC,Noto Sans CJK TC Bold
Noto Sans CJK KR,Noto Sans CJK KR Medium
Noto Sans CJK TC,Noto Sans CJK TC Thin
Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Bold
文泉驛微米黑,WenQuanYi Micro Hei,文泉驿微米黑
AR PL UKai CN
Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Bold
Noto Sans CJK JP,Noto Sans CJK JP Black
文泉驛等寬微米黑,WenQuanYi Micro Hei Mono,文泉驿等宽微米黑
AR PL UKai TW
Noto Sans CJK SC,Noto Sans CJK SC Bold
Noto Sans CJK SC,Noto Sans CJK SC Regular
Noto Sans CJK JP,Noto Sans CJK JP DemiLight
Noto Sans CJK TC,Noto Sans CJK TC DemiLight
Noto Sans Mono CJK JP,Noto Sans Mono CJK JP Regular
Noto Sans CJK JP,Noto Sans CJK JP Light
Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Bold
Noto Sans CJK TC,Noto Sans CJK TC Regular
AR PL UMing CN
Noto Sans CJK SC,Noto Sans CJK SC Medium
AR PL UMing TW
Noto Sans Mono CJK KR,Noto Sans Mono CJK KR Regular
Noto Sans CJK SC,Noto Sans CJK SC Light
Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Bold
AR PL UMing HK
Noto Sans CJK SC,Noto Sans CJK SC Black
Noto Sans CJK TC,Noto Sans CJK TC Medium
Noto Sans CJK TC,Noto Sans CJK TC Black
Noto Sans CJK SC,Noto Sans CJK SC Thin
Noto Sans CJK JP,Noto Sans CJK JP Medium
AR PL UMing TW MBE
Noto Sans CJK SC,Noto Sans CJK SC DemiLight
Noto Sans CJK JP,Noto Sans CJK JP Regular
AR PL UKai HK
AR PL UKai TW MBE
Noto Sans Mono CJK SC,Noto Sans Mono CJK SC Regular
Noto Sans CJK KR,Noto Sans CJK KR DemiLight
Noto Sans CJK KR,Noto Sans CJK KR Regular
Noto Sans Mono CJK TC,Noto Sans Mono CJK TC Regular
Noto Sans CJK TC,Noto Sans CJK TC Light
Noto Sans CJK KR,Noto Sans CJK KR Black
Noto Sans CJK KR,Noto Sans CJK KR Light
Noto Sans CJK JP,Noto Sans CJK JP Bold
Noto Sans CJK KR,Noto Sans CJK KR Bold
Noto Sans CJK KR,Noto Sans CJK KR Thin
treehrt@treehrt-fire:~$ fc-list -f '%{family}\n' :lang=zh|wc
     46     345    1801
treehrt@treehrt-fire:~$

 

(4)查询等宽字型:

treehrt@treehrt-fire:~$ fc-match monospace
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
treehrt@treehrt-fire:~$

(5) treehrt@treehrt-fire:~$ cat /etc/fonts/fonts.conf|more
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

<!--
    DO NOT EDIT THIS FILE.
    IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
    LOCAL CHANGES BELONG IN 'local.conf'.

    The intent of this standard configuration file is to be adequate for
    most environments.  If you have a reasonably normal environment and
    have found problems with this configuration, they are probably
    things that others will also want fixed.  Please submit any
    problems to the fontconfig bugzilla system located at fontconfig.org

    Note that the normal 'make install' procedure for fontconfig is to
    replace any existing fonts.conf file with the new version.  Place
    any local customizations in local.conf which this file references.

    Keith Packard
-->

<!-- Font directory list -->

    <dir>/usr/share/fonts</dir>
    <dir>/usr/local/share/fonts</dir>
    <dir prefix="xdg">fonts</dir>
    <!-- the following element will be removed in the future -->
    <dir>~/.fonts</dir>

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
    <match target="pattern">
        <test qual="any" name="family">
            <string>mono</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>monospace</string>
        </edit>
    </match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans serif</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>sans-serif</string>
        </edit>
    </match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>sans-serif</string>
        </edit>
    </match>

<!--
  Load local system customization file
-->
    <include ignore_missing="yes">conf.d</include>

<!-- Font cache directory list -->

    <cachedir>/var/cache/fontconfig</cachedir>
    <cachedir prefix="xdg">fontconfig</cachedir>
    <!-- the following element will be removed in the future -->
    <cachedir>~/.fontconfig</cachedir>

    <config>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
        <rescan>
            <int>30</int>
        </rescan>
    </config>

</fontconfig>

(6)fontconfig

 

treehrt@treehrt-fire:~$ sudo apt-get install fontconfig
正在讀取套件清單... 完成
正在重建相依關係         
正在讀取狀態資料... 完成
fontconfig is already the newest version (2.11.94-0ubuntu1.1).

 

treehrt@treehrt-fire:~$ whereis fontconfig
fontconfig: /usr/include/fontconfig /usr/share/fontconfig
treehrt@treehrt-fire:~$

(7)REF:

https://wiki.ubuntu-tw.org/index.php?title=HowtoCustomFontswithFontconfig

 

(8) wget -c https://noto-website.storage.googleapis.com/pkgs/Noto-hinted.zip

 

(9)treehrt@hrt:~$ unzip Noto-hinted.zip -d Noto

:

  inflating: Noto/NotoSerifTelugu-Bold.ttf 
  inflating: Noto/NotoSerifTelugu-Regular.ttf 
  inflating: Noto/NotoSerifThai-Bold.ttf 
  inflating: Noto/NotoSerifThai-Regular.ttf 
  inflating: Noto/README            

(10)
treehrt@hrt:~$  sudo mv Noto /usr/local/share/fonts/
[sudo] password for treehrt:
treehrt@hrt:~$


(11)
treehrt@hrt:~$ sudo chown root.staff /usr/local/share/fonts/Noto -R
[sudo] password for treehrt:

(12)
treehrt@hrt:~$ sudo chmod 644 /usr/local/share/fonts/Noto/* -R
treehrt@hrt:~$ sudo chmod 755 /usr/local/share/fonts/Noto

(13)
treehrt@hrt:~$ sudo fc-cache -fv
/usr/share/fonts: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 59 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 3 dirs
/usr/share/fonts/opentype/noto: caching, new cache contents: 36 fonts, 0 dirs
/usr/share/fonts/opentype/stix: caching, new cache contents: 29 fonts, 0 dirs
/usr/share/fonts/opentype/stix-word: caching, new cache contents: 5 fonts, 0 dirs
/usr/share/fonts/truetype: caching, new cache contents: 1 fonts, 20 dirs
/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ancient-scripts: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/arphic: caching, new cache contents: 8 fonts, 0 dirs
/usr/share/fonts/truetype/dejavu: caching, new cache contents: 21 fonts, 0 dirs
/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/nanum: caching, new cache contents: 6 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao-gothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu-font-family: caching, new cache contents: 13 fonts, 0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 1 dirs
/usr/local/share/fonts/Noto: caching, new cache contents: 217 fonts, 0 dirs
/home/treehrt/.local/share/fonts: skipping, no such directory
/home/treehrt/.fonts: skipping, no such directory
Re-scanning /usr/share/fonts: caching, new cache contents: 0 fonts, 5 dirs
Re-scanning /usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs
Re-scanning /usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
Re-scanning /usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
Re-scanning /usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 3 dirs
Re-scanning /usr/share/fonts/truetype: caching, new cache contents: 1 fonts, 20 dirs
Re-scanning /usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs
Re-scanning /usr/local/share/fonts: caching, new cache contents: 0 fonts, 1 dirs
/var/cache/fontconfig: cleaning cache directory
/home/treehrt/.cache/fontconfig: cleaning cache directory
/home/treehrt/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded

(14)
treehrt@hrt:~$ fc-match -a | grep Noto
NotoSansCJKtc-Regular.otf: "Noto Sans CJK TC" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans CJK TC" "Regular"
NotoSansCJKtc-Medium.otf: "Noto Sans CJK TC" "Medium"
NotoSansCJK-Medium.ttc: "Noto Sans CJK TC" "Medium"
NotoSansCJKtc-DemiLight.otf: "Noto Sans CJK TC" "DemiLight"
NotoSansCJK-DemiLight.ttc: "Noto Sans CJK TC" "DemiLight"
NotoSansCJKtc-Light.otf: "Noto Sans CJK TC" "Light"
NotoSansCJK-Light.ttc: "Noto Sans CJK TC" "Light"
NotoSansCJKtc-Thin.otf: "Noto Sans CJK TC" "Thin"
NotoSansCJK-Thin.ttc: "Noto Sans CJK TC" "Thin"
NotoSansCJKtc-Bold.otf: "Noto Sans CJK TC" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans CJK TC" "Bold"
NotoSansCJKtc-Black.otf: "Noto Sans CJK TC" "Black"
NotoSansCJK-Black.ttc: "Noto Sans CJK TC" "Black"
NotoSansCJKjp-Regular.otf: "Noto Sans CJK JP" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"
NotoSansCJKjp-Medium.otf: "Noto Sans CJK JP" "Medium"
NotoSansCJK-Medium.ttc: "Noto Sans CJK JP" "Medium"
NotoSansCJKjp-DemiLight.otf: "Noto Sans CJK JP" "DemiLight"
NotoSansCJK-DemiLight.ttc: "Noto Sans CJK JP" "DemiLight"
NotoSansCJKjp-Light.otf: "Noto Sans CJK JP" "Light"
NotoSansCJK-Light.ttc: "Noto Sans CJK JP" "Light"
NotoSansCJKjp-Thin.otf: "Noto Sans CJK JP" "Thin"
NotoSansCJK-Thin.ttc: "Noto Sans CJK JP" "Thin"
NotoSansCJKjp-Bold.otf: "Noto Sans CJK JP" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans CJK JP" "Bold"
NotoSansCJKjp-Black.otf: "Noto Sans CJK JP" "Black"
NotoSansCJK-Black.ttc: "Noto Sans CJK JP" "Black"
NotoSansCJKsc-Regular.otf: "Noto Sans CJK SC" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans CJK SC" "Regular"
NotoSansCJKsc-Medium.otf: "Noto Sans CJK SC" "Medium"
NotoSansCJK-Medium.ttc: "Noto Sans CJK SC" "Medium"
NotoSansCJKsc-DemiLight.otf: "Noto Sans CJK SC" "DemiLight"
NotoSansCJK-DemiLight.ttc: "Noto Sans CJK SC" "DemiLight"
NotoSansCJKsc-Light.otf: "Noto Sans CJK SC" "Light"
NotoSansCJK-Light.ttc: "Noto Sans CJK SC" "Light"
NotoSansCJKsc-Thin.otf: "Noto Sans CJK SC" "Thin"
NotoSansCJK-Thin.ttc: "Noto Sans CJK SC" "Thin"
NotoSansCJKsc-Bold.otf: "Noto Sans CJK SC" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans CJK SC" "Bold"
NotoSansCJKsc-Black.otf: "Noto Sans CJK SC" "Black"
NotoSansCJK-Black.ttc: "Noto Sans CJK SC" "Black"
NotoSansArmenian-Regular.ttf: "Noto Sans Armenian" "Regular"
NotoSerifArmenian-Regular.ttf: "Noto Serif Armenian" "Regular"
NotoSansCherokee-Regular.ttf: "Noto Sans Cherokee" "Regular"
NotoSansHebrew-Regular.ttf: "Noto Sans Hebrew" "Regular"
NotoSerifHebrew-Regular.ttf: "Noto Serif Hebrew" "Regular"
NotoSansMyanmar-Regular.ttf: "Noto Sans Myanmar" "Regular"
NotoSansMyanmarUI-Regular.ttf: "Noto Sans Myanmar UI" "Regular"
NotoSansSymbols-Regular.ttf: "Noto Sans Symbols" "Regular"
NotoSansEthiopic-Regular.ttf: "Noto Sans Ethiopic" "Regular"
NotoSansTamil-Regular.ttf: "Noto Sans Tamil" "Regular"
NotoSansTamilUI-Regular.ttf: "Noto Sans Tamil UI" "Regular"
NotoNaskhArabic-Regular.ttf: "Noto Naskh Arabic" "Regular"
NotoNaskhArabicUI-Regular.ttf: "Noto Naskh Arabic UI" "Regular"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
NotoSansDevanagari-Regular.ttf: "Noto Sans Devanagari" "Regular"
NotoSansDevanagariUI-Regular.ttf: "Noto Sans Devanagari UI" "Regular"
NotoSansGeorgian-Regular.ttf: "Noto Sans Georgian" "Regular"
NotoSansJavanese-Regular.ttf: "Noto Sans Javanese" "Regular"
NotoSansUI-Regular.ttf: "Noto Sans UI" "Regular"
NotoSerif-Regular.ttf: "Noto Serif" "Regular"
NotoSerifGeorgian-Regular.ttf: "Noto Serif Georgian" "Regular"
NotoEmoji-Regular.ttf: "Noto Emoji" "Regular"
NotoSansBatak-Regular.ttf: "Noto Sans Batak" "Regular"
NotoSansBuginese-Regular.ttf: "Noto Sans Buginese" "Regular"
NotoSansCarian-Regular.ttf: "Noto Sans Carian" "Regular"
NotoSansCuneiform-Regular.ttf: "Noto Sans Cuneiform" "Regular"
NotoSansKaithi-Regular.ttf: "Noto Sans Kaithi" "Regular"
NotoSansLimbu-Regular.ttf: "Noto Sans Limbu" "Regular"
NotoSansNewTaiLue-Regular.ttf: "Noto Sans New Tai Lue" "Regular"
NotoSansRejang-Regular.ttf: "Noto Sans Rejang" "Regular"
NotoSansSundanese-Regular.ttf: "Noto Sans Sundanese" "Regular"
NotoSansTelugu-Regular.ttf: "Noto Sans Telugu" "Regular"
NotoSansTeluguUI-Regular.ttf: "Noto Sans Telugu UI" "Regular"
NotoSansTifinagh-Regular.ttf: "Noto Sans Tifinagh" "Regular"
NotoKufiArabic-Regular.ttf: "Noto Kufi Arabic" "Regular"
NotoSansAvestan-Regular.ttf: "Noto Sans Avestan" "Regular"
NotoSansEgyptianHieroglyphs-Regular.ttf: "Noto Sans Egyptian Hieroglyphs" "Regular"
NotoSansGlagolitic-Regular.ttf: "Noto Sans Glagolitic" "Regular"
NotoSansHanunoo-Regular.ttf: "Noto Sans Hanunoo" "Regular"
NotoSansKannada-Regular.ttf: "Noto Sans Kannada" "Regular"
NotoSansKannadaUI-Regular.ttf: "Noto Sans Kannada UI" "Regular"
NotoSansLinearB-Regular.ttf: "Noto Sans Linear B" "Regular"
NotoSansLycian-Regular.ttf: "Noto Sans Lycian" "Regular"
NotoSansMalayalam-Regular.ttf: "Noto Sans Malayalam" "Regular"
NotoSansMalayalamUI-Regular.ttf: "Noto Sans Malayalam UI" "Regular"
NotoSansMeeteiMayek-Regular.ttf: "Noto Sans Meetei Mayek" "Regular"
NotoSansMongolian-Regular.ttf: "Noto Sans Mongolian" "Regular"
NotoSansOgham-Regular.ttf: "Noto Sans Ogham" "Regular"
NotoSansOldPersian-Regular.ttf: "Noto Sans Old Persian" "Regular"
NotoSansPhoenician-Regular.ttf: "Noto Sans Phoenician" "Regular"
NotoSansSaurashtra-Regular.ttf: "Noto Sans Saurashtra" "Regular"
NotoSansSylotiNagri-Regular.ttf: "Noto Sans Syloti Nagri" "Regular"
NotoSansSyriacEastern-Regular.ttf: "Noto Sans Syriac Eastern" "Regular"
NotoSansSyriacEstrangela-Regular.ttf: "Noto Sans Syriac Estrangela" "Regular"
NotoSansSyriacWestern-Regular.ttf: "Noto Sans Syriac Western" "Regular"
NotoSansTagbanwa-Regular.ttf: "Noto Sans Tagbanwa" "Regular"
NotoSansTaiLe-Regular.ttf: "Noto Sans Tai Le" "Regular"
NotoSansTaiTham-Regular.ttf: "Noto Sans Tai Tham" "Regular"
NotoSansThai-Regular.ttf: "Noto Sans Thai" "Regular"
NotoSansThaiUI-Regular.ttf: "Noto Sans Thai UI" "Regular"
NotoSerifThai-Regular.ttf: "Noto Serif Thai" "Regular"
NotoSansBalinese-Regular.ttf: "Noto Sans Balinese" "Regular"
NotoSansBamum-Regular.ttf: "Noto Sans Bamum" "Regular"
NotoSansBengali-Regular.ttf: "Noto Sans Bengali" "Regular"
NotoSansBengaliUI-Regular.ttf: "Noto Sans Bengali UI" "Regular"
NotoSansBrahmi-Regular.ttf: "Noto Sans Brahmi" "Regular"
NotoSansBuhid-Regular.ttf: "Noto Sans Buhid" "Regular"
NotoSansCanadianAboriginal-Regular.ttf: "Noto Sans Canadian Aboriginal" "Regular"
NotoSansCoptic-Regular.ttf: "Noto Sans Coptic" "Regular"
NotoSansCypriot-Regular.ttf: "Noto Sans Cypriot" "Regular"
NotoSansGothic-Regular.ttf: "Noto Sans Gothic" "Regular"
NotoSansGujarati-Regular.ttf: "Noto Sans Gujarati" "Regular"
NotoSansGujaratiUI-Regular.ttf: "Noto Sans Gujarati UI" "Regular"
NotoSansGurmukhi-Regular.ttf: "Noto Sans Gurmukhi" "Regular"
NotoSansGurmukhiUI-Regular.ttf: "Noto Sans Gurmukhi UI" "Regular"
NotoSansImperialAramaic-Regular.ttf: "Noto Sans Imperial Aramaic" "Regular"
NotoSansInscriptionalParthian-Regular.ttf: "Noto Sans Inscriptional Parthian" "Regular"
NotoSansKharoshthi-Regular.ttf: "Noto Sans Kharoshthi" "Regular"
NotoSansKhmer-Regular.ttf: "Noto Sans Khmer" "Regular"
NotoSansKhmerUI-Regular.ttf: "Noto Sans Khmer UI" "Regular"
NotoSansLao-Regular.ttf: "Noto Sans Lao" "Regular"
NotoSansLaoUI-Regular.ttf: "Noto Sans Lao UI" "Regular"
NotoSansLepcha-Regular.ttf: "Noto Sans Lepcha" "Regular"
NotoSansLisu-Regular.ttf: "Noto Sans Lisu" "Regular"
NotoSansLydian-Regular.ttf: "Noto Sans Lydian" "Regular"
NotoSansOlChiki-Regular.ttf: "Noto Sans Ol Chiki" "Regular"
NotoSansOldSouthArabian-Regular.ttf: "Noto Sans Old South Arabian" "Regular"
NotoSansOsmanya-Regular.ttf: "Noto Sans Osmanya" "Regular"
NotoSansPhagsPa-Regular.ttf: "Noto Sans Phags Pa" "Regular"
NotoSansSamaritan-Regular.ttf: "Noto Sans Samaritan" "Regular"
NotoSansShavian-Regular.ttf: "Noto Sans Shavian" "Regular"
NotoSansSinhala-Regular.ttf: "Noto Sans Sinhala" "Regular"
NotoSansTagalog-Regular.ttf: "Noto Sans Tagalog" "Regular"
NotoSansTaiViet-Regular.ttf: "Noto Sans Tai Viet" "Regular"
NotoSerifKhmer-Regular.ttf: "Noto Serif Khmer" "Regular"
NotoSerifLao-Regular.ttf: "Noto Serif Lao" "Regular"
NotoNastaliqUrdu-Regular.ttf: "Noto Nastaliq Urdu" "Regular"
NotoSansCham-Regular.ttf: "Noto Sans Cham" "Regular"
NotoSansDeseret-Regular.ttf: "Noto Sans Deseret" "Regular"
NotoSansInscriptionalPahlavi-Regular.ttf: "Noto Sans Inscriptional Pahlavi" "Regular"
NotoSansKayahLi-Regular.ttf: "Noto Sans Kayah Li" "Regular"
NotoSansMandaic-Regular.ttf: "Noto Sans Mandaic" "Regular"
NotoSansNKo-Regular.ttf: "Noto Sans NKo" "Regular"
NotoSansOldItalic-Regular.ttf: "Noto Sans Old Italic" "Regular"
NotoSansOldTurkic-Regular.ttf: "Noto Sans Old Turkic" "Regular"
NotoSansRunic-Regular.ttf: "Noto Sans Runic" "Regular"
NotoSansThaana-Regular.ttf: "Noto Sans Thaana" "Regular"
NotoSansUgaritic-Regular.ttf: "Noto Sans Ugaritic" "Regular"
NotoSansVai-Regular.ttf: "Noto Sans Vai" "Regular"
NotoSansYi-Regular.ttf: "Noto Sans Yi" "Regular"
NotoSerifGujarati-Regular.ttf: "Noto Serif Gujarati" "Regular"
NotoSansOriya-Regular.ttf: "Noto Sans Oriya" "Regular"
NotoSansOriyaUI-Regular.ttf: "Noto Sans Oriya UI" "Regular"
NotoSansTibetan-Regular.ttf: "Noto Sans Tibetan" "Regular"
NotoSerifBengali-Regular.ttf: "Noto Serif Bengali" "Regular"
NotoSerifDevanagari-Regular.ttf: "Noto Serif Devanagari" "Regular"
NotoSerifKannada-Regular.ttf: "Noto Serif Kannada" "Regular"
NotoSerifMalayalam-Regular.ttf: "Noto Serif Malayalam" "Regular"
NotoSerifTamil-Regular.ttf: "Noto Serif Tamil" "Regular"
NotoSerifTelugu-Regular.ttf: "Noto Serif Telugu" "Regular"
NotoSansCJKkr-Regular.otf: "Noto Sans CJK KR" "Regular"
NotoSansMonoCJKjp-Regular.otf: "Noto Sans Mono CJK JP" "Regular"
NotoSansMonoCJKkr-Regular.otf: "Noto Sans Mono CJK KR" "Regular"
NotoSansMonoCJKsc-Regular.otf: "Noto Sans Mono CJK SC" "Regular"
NotoSansMonoCJKtc-Regular.otf: "Noto Sans Mono CJK TC" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans CJK KR" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans Mono CJK JP" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans Mono CJK KR" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans Mono CJK SC" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans Mono CJK TC" "Regular"
NotoMono-Regular.ttf: "Noto Mono" "Regular"
NotoSansCJKkr-Medium.otf: "Noto Sans CJK KR" "Medium"
NotoSansCJK-Medium.ttc: "Noto Sans CJK KR" "Medium"
NotoSansCJKkr-DemiLight.otf: "Noto Sans CJK KR" "DemiLight"
NotoSansCJK-DemiLight.ttc: "Noto Sans CJK KR" "DemiLight"
NotoSansCJKkr-Light.otf: "Noto Sans CJK KR" "Light"
NotoSansCJK-Light.ttc: "Noto Sans CJK KR" "Light"
NotoSansCJKkr-Thin.otf: "Noto Sans CJK KR" "Thin"
NotoSansCJK-Thin.ttc: "Noto Sans CJK KR" "Thin"
NotoSansArmenian-Bold.ttf: "Noto Sans Armenian" "Bold"
NotoSerifArmenian-Bold.ttf: "Noto Serif Armenian" "Bold"
NotoSansHebrew-Bold.ttf: "Noto Sans Hebrew" "Bold"
NotoSerifHebrew-Bold.ttf: "Noto Serif Hebrew" "Bold"
NotoSansMyanmar-Bold.ttf: "Noto Sans Myanmar" "Bold"
NotoSansMyanmarUI-Bold.ttf: "Noto Sans Myanmar UI" "Bold"
NotoSansEthiopic-Bold.ttf: "Noto Sans Ethiopic" "Bold"
NotoSansTamil-Bold.ttf: "Noto Sans Tamil" "Bold"
NotoSansTamilUI-Bold.ttf: "Noto Sans Tamil UI" "Bold"
NotoNaskhArabic-Bold.ttf: "Noto Naskh Arabic" "Bold"
NotoNaskhArabicUI-Bold.ttf: "Noto Naskh Arabic UI" "Bold"
NotoSans-Bold.ttf: "Noto Sans" "Bold"
NotoSansDevanagari-Bold.ttf: "Noto Sans Devanagari" "Bold"
NotoSansDevanagariUI-Bold.ttf: "Noto Sans Devanagari UI" "Bold"
NotoSansGeorgian-Bold.ttf: "Noto Sans Georgian" "Bold"
NotoSansUI-Bold.ttf: "Noto Sans UI" "Bold"
NotoSerif-Bold.ttf: "Noto Serif" "Bold"
NotoSerifGeorgian-Bold.ttf: "Noto Serif Georgian" "Bold"
NotoSansTelugu-Bold.ttf: "Noto Sans Telugu" "Bold"
NotoSansTeluguUI-Bold.ttf: "Noto Sans Telugu UI" "Bold"
NotoKufiArabic-Bold.ttf: "Noto Kufi Arabic" "Bold"
NotoSansKannada-Bold.ttf: "Noto Sans Kannada" "Bold"
NotoSansKannadaUI-Bold.ttf: "Noto Sans Kannada UI" "Bold"
NotoSansMalayalam-Bold.ttf: "Noto Sans Malayalam" "Bold"
NotoSansMalayalamUI-Bold.ttf: "Noto Sans Malayalam UI" "Bold"
NotoSansThai-Bold.ttf: "Noto Sans Thai" "Bold"
NotoSansThaiUI-Bold.ttf: "Noto Sans Thai UI" "Bold"
NotoSerifThai-Bold.ttf: "Noto Serif Thai" "Bold"
NotoSansBengali-Bold.ttf: "Noto Sans Bengali" "Bold"
NotoSansBengaliUI-Bold.ttf: "Noto Sans Bengali UI" "Bold"
NotoSansGujarati-Bold.ttf: "Noto Sans Gujarati" "Bold"
NotoSansGujaratiUI-Bold.ttf: "Noto Sans Gujarati UI" "Bold"
NotoSansGurmukhi-Bold.ttf: "Noto Sans Gurmukhi" "Bold"
NotoSansGurmukhiUI-Bold.ttf: "Noto Sans Gurmukhi UI" "Bold"
NotoSansKhmer-Bold.ttf: "Noto Sans Khmer" "Bold"
NotoSansKhmerUI-Bold.ttf: "Noto Sans Khmer UI" "Bold"
NotoSansLao-Bold.ttf: "Noto Sans Lao" "Bold"
NotoSansLaoUI-Bold.ttf: "Noto Sans Lao UI" "Bold"
NotoSansSinhala-Bold.ttf: "Noto Sans Sinhala" "Bold"
NotoSerifKhmer-Bold.ttf: "Noto Serif Khmer" "Bold"
NotoSerifLao-Bold.ttf: "Noto Serif Lao" "Bold"
NotoSansCham-Bold.ttf: "Noto Sans Cham" "Bold"
NotoSansThaana-Bold.ttf: "Noto Sans Thaana" "Bold"
NotoSerifGujarati-Bold.ttf: "Noto Serif Gujarati" "Bold"
NotoSansOriya-Bold.ttf: "Noto Sans Oriya" "Bold"
NotoSansOriyaUI-Bold.ttf: "Noto Sans Oriya UI" "Bold"
NotoSansTibetan-Bold.ttf: "Noto Sans Tibetan" "Bold"
NotoSerifBengali-Bold.ttf: "Noto Serif Bengali" "Bold"
NotoSerifDevanagari-Bold.ttf: "Noto Serif Devanagari" "Bold"
NotoSerifKannada-Bold.ttf: "Noto Serif Kannada" "Bold"
NotoSerifMalayalam-Bold.ttf: "Noto Serif Malayalam" "Bold"
NotoSerifTamil-Bold.ttf: "Noto Serif Tamil" "Bold"
NotoSerifTelugu-Bold.ttf: "Noto Serif Telugu" "Bold"
NotoSansCJKkr-Bold.otf: "Noto Sans CJK KR" "Bold"
NotoSansMonoCJKjp-Bold.otf: "Noto Sans Mono CJK JP" "Bold"
NotoSansMonoCJKkr-Bold.otf: "Noto Sans Mono CJK KR" "Bold"
NotoSansMonoCJKsc-Bold.otf: "Noto Sans Mono CJK SC" "Bold"
NotoSansMonoCJKtc-Bold.otf: "Noto Sans Mono CJK TC" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans CJK KR" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans Mono CJK JP" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans Mono CJK KR" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans Mono CJK SC" "Bold"
NotoSansCJK-Bold.ttc: "Noto Sans Mono CJK TC" "Bold"
NotoSansCJKkr-Black.otf: "Noto Sans CJK KR" "Black"
NotoSansCJK-Black.ttc: "Noto Sans CJK KR" "Black"
NotoSerif-Italic.ttf: "Noto Serif" "Italic"
NotoSans-Italic.ttf: "Noto Sans" "Italic"
NotoSansUI-Italic.ttf: "Noto Sans UI" "Italic"
NotoSans-BoldItalic.ttf: "Noto Sans" "Bold Italic"
NotoSansUI-BoldItalic.ttf: "Noto Sans UI" "Bold Italic"
NotoSerif-BoldItalic.ttf: "Noto Serif" "Bold Italic"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"
treehrt@hrt:~$

20180919程式xml2b.c:解讀gpx航跡檔並另存為xmlout.gpx
2018/09/19,14:18

(1)input file: midlake.gpx

(2)code: xml2b.c

(3)complie:

g++ `xml2-config --cflags` xml2b.c `xml2-config --libs`

(4)excute:

treehrt@hrt:~/lake$ ./a.out midlake.gpx
WPT0 : WPT1 : WPT2 : WPT3 : WPT4 : WPT5 : WPT6 : WPT7 : WPT8 : WPT9 : WPT10 : WPT11 : WPT12 : WPT13 : WPT14 : WPT15 : WPT16 : WPT17 : WPT18 : WPT19 : WPT20 : WPT21 : Trk 0
midlake.gpx (wc=22 trkc=1 ) is save as xmlout.gpx ok!!

 

(5)output file:  xmlout.gpx

 

6)cat xmlout.gpx

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="xmlout.gpx" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocat
ion="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<metadata>
<time>2018-03-20T05:09:19Z</time>
<bounds  maxlat="24.721389999613166" maxlon="121.61008159630001" minlat="24.676733650267124" minlon="121.57345452345908"/>
</metadata>
<wpt lat="24.676764998584986" lon="121.61000397987664" >
<ele>109.23812100000001</ele>
<time>2018-03-16T23:13:35Z</time>
<name>001大同郵局</name>
<sym>City (Small)</sym>
</wpt>
<wpt lat="24.681043960154057" lon="121.60281800664961" >
<ele>148.16665599999999</ele>
<time>2018-03-16T23:20:19Z</time>
<name>002涼亭</name>
<sym>City (Small)</sym>
</wpt>
<wpt lat="24.687358969822526" lon="121.59566899761558" >
<ele>257.38415500000002</ele>
<time>2018-03-16T23:25:00Z</time>
<name>003斗嫩橋岔</name>
<sym>City (Small)</sym>
</wpt>

<wpt lat="24.690732015296817" lon="121.59257397986948" >
<ele>387.77941900000002</ele>
<time>2018-03-17T09:41:35Z</time>
<name>039柵</name>
<sym>City (Small)</sym>
</wpt>
<trk>
<name>201800317崙埤池中嶺池中嶺山O</name>
<trkseg>
<trkpt  lat="24.676733650267124" lon="121.61008159630001">
<ele>71.760000000000005</ele>
<time> 2018-03-16T23:13:02Z</time>
</trkpt>
<trkpt  lat="24.676743792369962" lon="121.61002300679684">
<ele>71.760000000000005</ele>
<time> 2018-03-16T23:13:03Z</time>
</trkpt>

 

<trkpt  lat="24.690756741911173" lon="121.59254036843777">
<ele>387.06999999999999</ele>
<time> 2018-03-17T09:41:03Z</time>
</trkpt>
<trkpt  lat="24.690732602030039" lon="121.59257649444044">
<ele>387.06999999999999</ele>
<time> 2018-03-17T09:41:26Z</time>
</trkpt>
<trkpt  lat="24.690732099115849" lon="121.59257171675563">
<ele>385.63</ele>
<time> 2018-03-17T09:41:39Z</time>
</trkpt>
</trkseg>
</trk>
</gpx>

 

20180910-13安裝xml程式庫libxml2-dev並設計測試程式xml2.c用來解讀gpx航跡檔
2018/09/10,12:58

(1)安裝xml2程式庫:sudo apt-get install libxml2-dev

(2) xml參考: http://xmlsoft.org/tutorial/index.html

(3-1) 程式碼 : xml2.c

(3-2) data : midlake.gpx

(3-3) map : http://oldwww.kmvs.km.edu.tw/lf/gallery/70/midlake.png

(4) complie: g++ `xml2-config --cflags` xml2.c `xml2-config --libs`

(5) excute:

treehrt@treehrt-BM6AE-BM1AE-BP1AE:~/lake$ ./a.out midlake.gpx

Root is <gpx> (1)
node type: Element, name: metadata

WPT 0
WPT attr name =lat value= 24.676764998584986
WPT attr name =lon value= 121.61000397987664
WPT ele: 109.23812100000001
WPT Time: 2018-03-16T23:13:35Z
WPT name: 001大同郵局
WPT sym: City (Small)
node type: Element, name: wpt

WPT 1
WPT attr name =lat value= 24.681043960154057
WPT attr name =lon value= 121.60281800664961
WPT ele: 148.16665599999999
WPT Time: 2018-03-16T23:20:19Z
WPT name: 002涼亭
WPT sym: City (Small)
node type: Element, name: wpt

WPT 2
WPT attr name =lat value= 24.687358969822526
WPT attr name =lon value= 121.59566899761558
WPT ele: 257.38415500000002
WPT Time: 2018-03-16T23:25:00Z
WPT name: 003斗嫩橋岔
WPT sym: City (Small)
node type: Element, name: wpt

WPT 3
WPT attr name =lat value= 24.69071701169014
WPT attr name =lon value= 121.59258001483977
WPT ele: 384.38803100000001
WPT Time: 2018-03-16T23:35:57Z
WPT name: 004柵欄
WPT sym: City (Small)
node type: Element, name: wpt

WPT 4
WPT attr name =lat value= 24.703876012936234
WPT attr name =lon value= 121.5848679933697
WPT ele: 736.84240699999998
WPT Time: 2018-03-17T01:07:14Z
WPT name: 008崙埤山岔
WPT sym: City (Small)
node type: Element, name: wpt

WPT 5
WPT attr name =lat value= 24.704700959846377
WPT attr name =lon value= 121.57880100421607
WPT ele: 827.36859100000004
WPT Time: 2018-03-17T01:36:26Z
WPT name: 011崙埤池岔
WPT sym: City (Small)
node type: Element, name: wpt

:

:

:

TrkPT 1676
TrkPT attr name =lat value= 24.690732602030039
TrkPT attr name =lon value= 121.59257649444044
TrkPT ele: 387.06999999999999
TrkPT time: 2018-03-17T09:41:26Z

TrkPT 1677
TrkPT attr name =lat value= 24.690732099115849
TrkPT attr name =lon value= 121.59257171675563
TrkPT ele: 385.63
TrkPT time: 2018-03-17T09:41:39Z

node type: Element, name: trk

 

 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType