diff --git a/japanese/Makefile b/japanese/Makefile index fe294ee2611f..7ec9a2a34009 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -1,304 +1,305 @@ COMMENT = Japanese support SUBDIR += ASCIIdates98-fpw SUBDIR += CGdic-fpw SUBDIR += FreeWnn-lib SUBDIR += FreeWnn-server SUBDIR += R-cran-zipangu SUBDIR += Wnn6-lib SUBDIR += Wnn7-lib SUBDIR += a2ps SUBDIR += ack SUBDIR += ajaxzip2-core SUBDIR += ajaxzip2-data SUBDIR += alias-fonts SUBDIR += another-htmllint SUBDIR += anthy-unicode SUBDIR += aobook SUBDIR += bible_names-fpw SUBDIR += boiled-mozc SUBDIR += bookview SUBDIR += bugzilla50 SUBDIR += canna-lib SUBDIR += canna-server SUBDIR += cannadic SUBDIR += cdrom2 SUBDIR += celrw SUBDIR += chasen-base SUBDIR += cmigemo SUBDIR += cmigemo-dict SUBDIR += cp5022x-el SUBDIR += cskk SUBDIR += csrd SUBDIR += ctags SUBDIR += dams SUBDIR += dbskkd-cdb SUBDIR += ddskk SUBDIR += devil-fpw SUBDIR += dvi2tty SUBDIR += e2ps SUBDIR += eb SUBDIR += ebd-fpw SUBDIR += eblook SUBDIR += ebnetd SUBDIR += ebview-gtk2 SUBDIR += edict SUBDIR += edict-fpw SUBDIR += edyvalue SUBDIR += eijiro-fpw SUBDIR += epwutil SUBDIR += fcitx-anthy SUBDIR += fcitx-mozc SUBDIR += fcitx-skk SUBDIR += fcitx5-anthy SUBDIR += fcitx5-cskk SUBDIR += fcitx5-skk SUBDIR += flower-fpw SUBDIR += foldoc-fpw SUBDIR += font-aozoramincho SUBDIR += font-ayu18 SUBDIR += font-ayu20 SUBDIR += font-bizin-gothic SUBDIR += font-bizud-gothic SUBDIR += font-bizud-mincho SUBDIR += font-cica SUBDIR += font-elisa10 SUBDIR += font-elisa8 SUBDIR += font-firge SUBDIR += font-firge-nerd SUBDIR += font-genjyuugothic SUBDIR += font-genshingothic SUBDIR += font-hackgen SUBDIR += font-hackgen-nf SUBDIR += font-ipa SUBDIR += font-ipa-uigothic SUBDIR += font-ipaex SUBDIR += font-ipamjm SUBDIR += font-jisx0213 SUBDIR += font-kaname12 SUBDIR += font-kanji18 SUBDIR += font-kanji26 SUBDIR += font-kappa20 SUBDIR += font-kochi SUBDIR += font-koruri SUBDIR += font-marumoji SUBDIR += font-mgenplus SUBDIR += font-migmix SUBDIR += font-migu SUBDIR += font-mikachan SUBDIR += font-mona SUBDIR += font-mona-ipa SUBDIR += font-mona-ttf SUBDIR += font-moralerspace SUBDIR += font-moralerspace-hw SUBDIR += font-moralerspace-hwjpdoc SUBDIR += font-moralerspace-jpdoc SUBDIR += font-motoya-al SUBDIR += font-mplus-bitmap SUBDIR += font-mplus-ipa SUBDIR += font-mplus-outline SUBDIR += font-myrica SUBDIR += font-myricam SUBDIR += font-naga10 SUBDIR += font-nasu SUBDIR += font-plemoljp SUBDIR += font-plemoljp-hs SUBDIR += font-plemoljp-nf SUBDIR += font-ricty SUBDIR += font-ricty-discord SUBDIR += font-rounded-mgenplus SUBDIR += font-sazanami SUBDIR += font-shinonome SUBDIR += font-std SUBDIR += font-takao SUBDIR += font-udev-gothic SUBDIR += font-udev-gothic-hs SUBDIR += font-udev-gothic-nf SUBDIR += font-ume SUBDIR += font-vlgothic SUBDIR += freepwing SUBDIR += fumeikai-fpw SUBDIR += gawk SUBDIR += gd SUBDIR += gedy SUBDIR += groff SUBDIR += gskk SUBDIR += gsuica SUBDIR += hns SUBDIR += ibus-anthy SUBDIR += ibus-mozc SUBDIR += ibus-skk SUBDIR += icanna SUBDIR += ipadic SUBDIR += jacode.pl SUBDIR += japana SUBDIR += japaneseAFM SUBDIR += jargon-fpw SUBDIR += jcode.pl SUBDIR += jishyo SUBDIR += jls SUBDIR += jvim3 SUBDIR += kakasi SUBDIR += kasumi-unicode SUBDIR += kbanner SUBDIR += kcc SUBDIR += kcode SUBDIR += kdrill SUBDIR += kinput2 SUBDIR += kiten SUBDIR += kon2-14dot SUBDIR += kon2-16dot SUBDIR += kterm SUBDIR += latex-jlisting SUBDIR += leafrogue SUBDIR += less SUBDIR += libreoffice SUBDIR += libskk SUBDIR += libslang SUBDIR += libtomoe-gtk SUBDIR += lipsf SUBDIR += lookup SUBDIR += lsd-fpw SUBDIR += lynx SUBDIR += lynx-current SUBDIR += man SUBDIR += man-doc SUBDIR += mecab SUBDIR += mecab-ipadic SUBDIR += mecab-ipadic-eucjp SUBDIR += mecab-ipadic-sjis SUBDIR += mecab-ipadic-utf8 SUBDIR += mecab-jawiki SUBDIR += mh SUBDIR += migemo SUBDIR += migemo.el SUBDIR += mime_pls SUBDIR += mozc-el SUBDIR += mozc-server SUBDIR += mozc-tool SUBDIR += multiskkserv SUBDIR += mypaedia-fpw-package SUBDIR += namazu2 SUBDIR += navi2ch SUBDIR += ne SUBDIR += nethack34 SUBDIR += newosaka SUBDIR += ng SUBDIR += ng-canna SUBDIR += ng-devel SUBDIR += ngraph-fonts SUBDIR += nkf SUBDIR += open_jtalk SUBDIR += p5-Date-Japanese-Era SUBDIR += p5-Date-Japanese-Holiday SUBDIR += p5-DateTime-Calendar-Japanese-Era SUBDIR += p5-DateTime-Format-Japanese SUBDIR += p5-Encode-EUCJPASCII SUBDIR += p5-Encode-EUCJPMS SUBDIR += p5-Encode-ISO2022 SUBDIR += p5-Encode-JP-Emoji SUBDIR += p5-Encode-JP-Mobile SUBDIR += p5-HTML-MobileJp SUBDIR += p5-Jcode SUBDIR += p5-Lingua-JA-Kana SUBDIR += p5-Lingua-JA-Moji SUBDIR += p5-Lingua-JA-Numbers SUBDIR += p5-Lingua-JA-Regular-Unicode SUBDIR += p5-Lingua-JA-Romanize-Japanese SUBDIR += p5-Lingua-JA-Summarize-Extract SUBDIR += p5-MeCab SUBDIR += p5-Number-Phone-JP SUBDIR += p5-PDFJ SUBDIR += p5-Text-ChaSen SUBDIR += p5-Text-Kakasi SUBDIR += p5-Text-MeCab SUBDIR += p5-Unicode-Japanese SUBDIR += p5-WWW-2ch SUBDIR += p5-WWW-MobileCarrierJP SUBDIR += p5-nkf SUBDIR += pejv-fpw SUBDIR += plain2 SUBDIR += plan SUBDIR += prn-ps SUBDIR += proxy2ch SUBDIR += py-SudachiPy SUBDIR += py-fugashi SUBDIR += py-ipadic SUBDIR += py-jaconv SUBDIR += py-mojimoji SUBDIR += py-unidic SUBDIR += qkc SUBDIR += qolibri SUBDIR += quit SUBDIR += radish-play SUBDIR += roget-fpw SUBDIR += rogue_s SUBDIR += ruby-romkan SUBDIR += ruby-uconv SUBDIR += rubygem-jpmobile-ipaddresses SUBDIR += rubygem-jpmobile-terminfo SUBDIR += rubygem-jpmobile4 SUBDIR += rubygem-mail-iso-2022-jp SUBDIR += rubygem-myrurema SUBDIR += ryaku-fpw SUBDIR += scim-anthy SUBDIR += scim-canna SUBDIR += scim-honoka SUBDIR += scim-honoka-plugin-romkan SUBDIR += scim-honoka-plugin-wnn SUBDIR += scim-skk SUBDIR += scim-tables SUBDIR += scim-tomoe SUBDIR += scim-uim SUBDIR += seaside SUBDIR += sj3-lib SUBDIR += sj3-server SUBDIR += skk SUBDIR += skk-jawiki SUBDIR += skk-jisyo SUBDIR += skk-jisyo-cdb SUBDIR += skk-tools SUBDIR += skkinput SUBDIR += skkinput3 SUBDIR += skkserv SUBDIR += slimeforest SUBDIR += slrn SUBDIR += sourcehansans-otf SUBDIR += sourcehanserif-otf SUBDIR += spoqahansans-ttf SUBDIR += srd-fpw-package SUBDIR += sudachi SUBDIR += suicavalue SUBDIR += tdiary SUBDIR += tegaki-zinnia-japanese SUBDIR += tex-ptex SUBDIR += tgif SUBDIR += tiarra SUBDIR += timidity++-slang SUBDIR += today SUBDIR += tomoe SUBDIR += uim-anthy-unicode SUBDIR += uim-mozc SUBDIR += uim-tomoe-gtk + SUBDIR += unidic-to-mozc SUBDIR += vera-fpw SUBDIR += vftool SUBDIR += w3m SUBDIR += w3m-img SUBDIR += waeijiro-fpw SUBDIR += wdic-fpw SUBDIR += web1913-fpw SUBDIR += webalizer SUBDIR += wnn7egg SUBDIR += wordnet-fpw SUBDIR += wordpress SUBDIR += wwasw-fpw SUBDIR += xpdf SUBDIR += xshodou SUBDIR += xtr SUBDIR += xv SUBDIR += yc.el SUBDIR += zinnia SUBDIR += zinnia-tomoe SUBDIR += zipcodes .include diff --git a/japanese/unidic-to-mozc/Makefile b/japanese/unidic-to-mozc/Makefile new file mode 100644 index 000000000000..1d01beace025 --- /dev/null +++ b/japanese/unidic-to-mozc/Makefile @@ -0,0 +1,32 @@ +PORTNAME= unidic-to-mozc +DISTVERSION= 1.0.0 +CATEGORIES= japanese +MASTER_SITES= https://github.com/jassdack/UniDic-to-Mozc/releases/download/v${DISTVERSION}/ +DISTNAME= mozc_unidic_merged_v${DISTVERSION} + +MAINTAINER= mce@FreeBSD.org +COMMENT= Mozc user dictionary integration +WWW= https://github.com/jassdack/UniDic-to-Mozc + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/UNIDIC_LICENSE.txt + +USES= zip + +NO_ARCH= yes +NO_BUILD= yes +SUB_FILES= pkg-message + +NO_WRKSUBDIR= yes + +PORTDATA= * + +do-install: +.for i in 1 2 3 4 + @${MV} ${WRKSRC}/mozc_unidic_merged_$i.tsv \ + ${WRKSRC}/mozc_unidic_merged_$i.txt +.endfor + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/mozc_unidic_merged_*.txt ${STAGEDIR}${DATADIR} + +.include diff --git a/japanese/unidic-to-mozc/distinfo b/japanese/unidic-to-mozc/distinfo new file mode 100644 index 000000000000..27a2a0a6fd4c --- /dev/null +++ b/japanese/unidic-to-mozc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1781501270 +SHA256 (mozc_unidic_merged_v1.0.0.zip) = ee14bea5c6ce372158a75c34ef8faa3469d4f38832f3aa7da9568d0649c426de +SIZE (mozc_unidic_merged_v1.0.0.zip) = 2327456 diff --git a/japanese/unidic-to-mozc/files/pkg-message.in b/japanese/unidic-to-mozc/files/pkg-message.in new file mode 100644 index 000000000000..edd06db72dd8 --- /dev/null +++ b/japanese/unidic-to-mozc/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: < "Import as new dictionary..." +Specify the %%DATADIR%%/mozc_unidic_merged_1.txt +and execute the import. +Follow the same procedure to import _2.txt through _4.txt in order. +EOM +} +] diff --git a/japanese/unidic-to-mozc/pkg-descr b/japanese/unidic-to-mozc/pkg-descr new file mode 100644 index 000000000000..82e7e986512c --- /dev/null +++ b/japanese/unidic-to-mozc/pkg-descr @@ -0,0 +1,14 @@ +The Mozc extended dictionary system and user dictionary solved the +challenges of "legal affairs, operations, and quality." + +The vocabulary (approximately 1.02 million words) from "UniDic" the +highest-quality corpus compiled by the National Institute for Japanese +Language and Linguistics, has been optimized for Mozc's algorithms, +resulting in approximately 354,000 practical basic forms. + +The most distinctive feature of this project is that it requires no +complex build chains such as C++ compilers or Bazel. It can be +imported directly from the GUI's Dictionary Tool. + +Mozc's user dictionaries have a limit of 100,000 words per file so +they are automatically split into manageable sizes.