git: eaeba18fae9e - main - japanese/unidic-to-mozc: Mozc user dictionary integration
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jun 2026 05:41:37 UTC
The branch main has been updated by mce:
URL: https://cgit.FreeBSD.org/ports/commit/?id=eaeba18fae9e268e8e89e857b834fad9597b23cb
commit eaeba18fae9e268e8e89e857b834fad9597b23cb
Author: Kousuke Kannagi <mce@FreeBSD.org>
AuthorDate: 2026-06-16 03:25:51 +0000
Commit: Kousuke Kannagi <mce@FreeBSD.org>
CommitDate: 2026-06-29 05:39:45 +0000
japanese/unidic-to-mozc: Mozc user dictionary integration
https://github.com/jassdack/UniDic-to-Mozc
PR: 296081
Approved by: osa (mentor)
---
japanese/Makefile | 1 +
japanese/unidic-to-mozc/Makefile | 32 ++++++++++++++++++++++++++++
japanese/unidic-to-mozc/distinfo | 3 +++
japanese/unidic-to-mozc/files/pkg-message.in | 15 +++++++++++++
japanese/unidic-to-mozc/pkg-descr | 14 ++++++++++++
5 files changed, 65 insertions(+)
diff --git a/japanese/Makefile b/japanese/Makefile
index fe294ee2611f..7ec9a2a34009 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -280,6 +280,7 @@
SUBDIR += uim-anthy-unicode
SUBDIR += uim-mozc
SUBDIR += uim-tomoe-gtk
+ SUBDIR += unidic-to-mozc
SUBDIR += vera-fpw
SUBDIR += vftool
SUBDIR += w3m
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 <bsd.port.mk>
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: <<EOM
+Dictionary Import Procedure:
+Open the "Dictionary Tool" in Mozc.
+
+$ mozc_tool dictionary_tool
+
+Select "Tools" > "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.