yomitan

package module
v0.0.0-...-4e19dce Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 17 Imported by: 0

README

Yomitan Import

👋 This project is a community fork of yomichan-import (which was sunset by its owner on Feb 26 2023).

The primary goal is to keep the project alive by providing long-term support and fixing bugs. (Feature improvements are considered secondary.)

Since this is a distributed effort, we highly welcome new contributors! Feel free to browse the issue tracker, and you can find us on TheMoeWay Discord at #colab-tmw-projects

Yomitan Import allows users of the Yomitan extension to import custom dictionary files. It currently supports the following formats:

Yomitan Import is being expanded to support other EPWING dictionaries based on user demand. This is a mostly non-technical (although laborious) process that requires writing regular expressions and creating font tables; volunteer contributions are welcome.

Installation and Usage

Follow the steps outlined below to import your custom dictionary into Yomitan:

  1. Download a pre-built binary for Linux, Mac OS X or Windows from the project page.
  2. Launch the yomichan-gtk executable after extracting the entire archive (or yomichan from the command line).
  3. Specify the source path of the dictionary you wish to convert.
  4. Specify the target path of the dictionary ZIP archive that you wish to create.
  5. Press the button labeled Import dictionary... and wait for processing to complete.
  6. On the Yomitan options page, browse to the dictionary ZIP archive file you created.
  7. Wait for the import progress to complete before closing the options page.

Notice: When converting EPWING dictionaries on Windows, it is important that the dictionary path you provide does not contain non-ASCII characters (including Japanese characters). This problem is due to the fact that the EPWING library used does not support such paths. Attempts to convert dictionaries stored in paths containing illegal characters may cause the conversion process to fail.

  • stephenmk/jitenbot: A program for scraping Japanese dictionary websites and compiling the scraped data into compact dictionary file formats, including Yomitan dictionaries.

Documentation

Index

Constants

View Source
const (
	DefaultFormat   = ""
	DefaultLanguage = ""
	DefaultPretty   = false
	DefaultStride   = 10000
	DefaultTitle    = ""
)

Variables

View Source
var ISOtoFlag = map[string]string{
	"":    "'🇬🇧 '",
	"eng": "'🇬🇧 '",
	"dut": "'🇳🇱 '",
	"fre": "'🇫🇷 '",
	"ger": "'🇩🇪 '",
	"hun": "'🇭🇺 '",
	"ita": "'🇮🇹 '",
	"jpn": "'🇯🇵 '",
	"rus": "'🇷🇺 '",
	"slv": "'🇸🇮 '",
	"spa": "'🇪🇸 '",
	"swe": "'🇸🇪 '",
}
View Source
var ISOtoHTML = map[string]string{
	"afr": "af",
	"ain": "ain",
	"alg": "alg",
	"amh": "am",
	"ara": "ar",
	"arn": "arn",
	"bnt": "bnt",
	"bre": "br",
	"bul": "bg",
	"bur": "my",
	"chi": "zh",
	"chn": "chn",
	"cze": "cs",
	"dan": "da",
	"dut": "nl",
	"eng": "en",
	"epo": "eo",
	"est": "et",
	"fil": "fil",
	"fin": "fi",
	"fre": "fr",
	"geo": "ka",
	"ger": "de",
	"glg": "gl",
	"grc": "grc",
	"gre": "el",
	"haw": "haw",
	"heb": "he",
	"hin": "hi",
	"hun": "hu",
	"ice": "is",
	"ind": "id",
	"ita": "it",
	"jpn": "ja",
	"khm": "km",
	"kor": "ko",
	"kur": "ku",
	"lat": "la",
	"mal": "ml",
	"mao": "mi",
	"may": "ms",
	"mnc": "mnc",
	"mol": "ro",
	"mon": "mn",
	"nor": "no",
	"per": "fa",
	"pol": "pl",
	"por": "pt",
	"rum": "ro",
	"rus": "ru",
	"san": "sa",
	"scr": "hr",
	"slo": "sk",
	"slv": "sl",
	"som": "so",
	"spa": "es",
	"swa": "sw",
	"swe": "sv",
	"tah": "ty",
	"tam": "ta",
	"tgl": "tl",
	"tha": "th",
	"tib": "bo",
	"tur": "tr",
	"ukr": "uk",
	"urd": "ur",
	"vie": "vi",
	"yid": "yi",
}

https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

Functions

func ExportDb

func ExportDb(inputPath, outputPath, format, language, title string, stride int, pretty bool) error

Types

type LangCode

type LangCode struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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