| # Fonts for Tesseract training |
#Tesseractトレーニング用のフォント |
| Tesseract training can use images made from text which was rendered with a list of fonts. Those fonts must be available on the host where the training process is running. |
Tesseractトレーニングでは、フォントのリストでレンダリングされたテキストから作成された画像を使用できます。これらのフォントは、トレーニングプロセスが実行されているホストで利用可能でなければなりません。 |
| The fonts that were used to train 3.05's OCR engine and the legacy OCR engine in 4.0.0 are defined in training/language-specific.sh. |
4.05で3.05のOCRエンジンとレガシーOCRエンジンをトレーニングするために使用されたフォントはtraining / language-specific.shに定義されています。 master / src / training / language-specific.sh) |
| Many more fonts are listed in langdata/font_properties. If you add fonts to the first file (or specify them explicitly via command line parameter), you must add them to the second as well. |
もっと多くのフォントがlangdata / font_propertiesにリストされています。最初のファイルにフォントを追加する場合(またはコマンドラインパラメータでフォントを明示的に指定する場合)、それらを2番目のファイルにも追加する必要があります。 |
The fonts that were used to train the LSTM OCR engine in 4.0.0 are defined in /okfonts.txt files in the langdata_lstm repo. |
4.0.0でLSTM OCRエンジンをトレーニングするために使われたフォントはlangdata_lstmリポジトリの / okfonts.txtファイルに定義されています。 |
| ## Find Fonts |
##フォントを探す |
To find fonts already installed on your system which will render a given training text, you can use the following command (change the language code and directory locations to match your setup). fontslist.txt will provide text that can be used in training/language-specific.sh. |
システムにすでにインストールされている特定のトレーニングテキストを表示するフォントを見つけるには、次のコマンドを使用します(設定に合わせて言語コードとディレクトリの場所を変更します)。 fontslist.txtは training / language-specific.shで使えるテキストを提供します。 |
` | ` |
| text2image --find_fonts \ |
text2image --find_fonts \ |
| --fonts_dir /usr/share/fonts \ |
--fonts_dir / usr / share / fonts \ |
| --text ./langdata/eng/eng.training_text \ |
--text ./langdata/eng/eng.training_text \ |
| --min_coverage .9 \ |
--min_coverage .9 \ |
| --outputbase ./langdata/eng/eng \ |
--outputbase ./langdata/eng/eng \ |
| & grep raw \ |
|
&grep raw \ |
| sed -e 's/ :.*/@ \/g' \ |
|
sed -eの/:。* / @ \ / g '\ |
| sed -e "s/^/ '/" \ |
|
sed -e "s / ^ / '/" \ |
| sed -e "s/@/'/g" >./langdata/eng/fontslist.txt |
|
sed -e "s / @ / '/ g"> ./ langdata / eng / fontslist.txt |
` | ` |
| The above will not work for Fraktur fonts, it will identify all Latin fonts also. Review the generated images and choose appropriate fonts. |
上記はFrakturフォントでは機能しません。ラテン語のフォントもすべて識別できます。生成された画像を確認して適切なフォントを選択してください。 |
| ## Font installation |
##フォントのインストール |
| ### Debian |
### Debian |
| On Debian GNU Linux and similar distributions (Linux Mint, Ubuntu, ...), |
Debian GNU Linuxおよび類似のディストリビューション(Linux Mint、Ubuntu、...)では、 |
| the required fonts can be installed like that: |
必要なフォントは以下のようにインストールできます。 |
| # AMHARIC_FONTS (todo) |
#AMHARIC_FONTS(仕事) |
| # ANCIENT_GREEK_FONTS (todo) |
#ANCIENT_GREEK_FONTS(仕事) |
| # ARABIC_FONTS (todo) |
#ARABIC_FONTS(仕事) |
| # ARMENIAN_FONTS (todo) |
#ARMENIAN_FONTS(仕事) |
| # BENGALI_FONTS (todo) |
#BENGALI_FONTS(仕事) |
| # BURMESE_FONTS (todo) |
#BURMESE_FONTS(仕事) |
| # CHI_SIM_FONTS (todo) |
#CHI_SIM_FONTS(仕事) |
| # CHI_TRA_FONTS (todo) |
#CHI_TRA_FONTS(仕事) |
| # DEVANAGARI_FONTS (see also external links below) |
#DEVANAGARI_FONTS(下記の外部リンクも参照) |
| apt-get install fonts-deva |
apt-get install fonts-deva |
| # EARLY_LATIN_FONTS (todo) |
#EARLY_LATIN_FONTS(仕事) |
| # FRAKTUR_FONTS (todo) |
#FRAKTUR_FONTS(仕事) |
| # GEORGIAN_FONTS (todo) |
#GEORGIAN_FONTS(仕事) |
| # GREEK_FONTS (todo) |
#GREEK_FONTS(仕事) |
| # GUJARATI_FONTS (todo) |
#GUJARATI_FONTS(仕事) |
| # HEBREW_FONTS (todo) |
#HEBREW_FONTS(仕事) |
| # JPN_FONTS (todo) |
#JPN_FONTS(仕事) |
| apt-get install fonts-noto-cjk fonts-japanese-mincho.ttf fonts-takao-gothic fonts-vlgothic |
apt-getインストールfonts-noto-cjkフォント-japanese-mincho.ttfフォント-tao-gothicフォント-vlgothic |
| # KANNADA_FONTS (todo) |
#KANNADA_FONTS(仕事) |
| # KHMER_FONTS (todo) |
#KHMER_FONTS(仕事) |
| # KOREAN_FONTS (todo) |
#KOREAN_FONTS(仕事) |
| # KURDISH_FONTS (todo) |
#KURDISH_FONTS(仕事) |
| # KYRGYZ_FONTS (todo) |
#KYRGYZ_FONTS(仕事) |
| # LAOTHIAN_FONTS (todo) |
#LAOTHIAN_FONTS(仕事) |
| # LATIN_FONTS |
#LATIN_FONTS |
| apt-get install fonts-dejavu gsfonts ttf-mscorefonts-installer |
apt-getインストールfonts-dejavu gsfonts ttf-mscorefonts-installer |
| # MALAYALAM_FONTS (todo) |
#MALAYALAM_FONTS(仕事) |
| # NEOLATIN_FONTS (still incomplete) |
#NEOLATIN_FONTS(まだ不完全) |
| apt-get install fonts-ebgaramond fonts-gfs-didot fonts-gfs-didot-classic fonts-junicode |
apt-getインストールfonts-ebgaramondフォント-gfs-didotフォント-gfs-didot-classicフォント-junicode |
| # NORTH_AMERICAN_ABORIGINAL_FONTS (todo) |
#NORTH_AMERICAN_ABORIGINAL_FONTS(仕事) |
| # OLD_GEORGIAN_FONTS (todo) |
#OLD_GEORGIAN_FONTS(仕事) |
| # ORIYA_FONTS (todo) |
#ORIYA_FONTS(仕事) |
| # PERSIAN_FONTS (todo) |
#PERSIAN_FONTS(仕事) |
| # PUNJABI_FONTS (todo) |
#PUNJABI_FONTS(仕事) |
| # RUSSIAN_FONTS (todo) |
#RUSSIAN_FONTS(仕事) |
| # SINHALA_FONTS (todo) |
#SINHALA_FONTS(仕事) |
| # SYRIAC_FONTS (todo) |
#SYRIAC_FONTS(仕事) |
| # TAMIL_FONTS (todo) |
#TAMIL_FONTS(仕事) |
| # TELUGU_FONTS (todo) |
#TELUGU_FONTS(仕事) |
| # THAANA_FONTS (todo) |
#THAANA_FONTS(仕事) |
| # THAI_FONTS (todo) |
#THAI_FONTS(仕事) |
| # TIBETAN_FONTS (todo) |
#TIBETAN_FONTS(仕事) |
| # VERTICAL_FONTS (todo) |
#VERTICAL_FONTS(仕事) |
| # VIETNAMESE_FONTS (todo) |
#VIETNAMESE_FONTS(仕事) |
The installed fonts are shown by the command fc-list. See also the Debian wiki. |
インストールされているフォントは fc-listコマンドで表示されます。 Debian wikiもご覧ください。 |
text2image --fonts_dir /usr/share/fonts --list_available_fonts will also show all fonts. |
text2image --fonts_dir / usr / share / fonts --list_available_fontsはすべてのフォントも表示します。 |
| ## Links |
##リンク |
| ### Sources of (mostly free) fonts |
###(主に無料の)フォントの入手先 |
| #### Latin Fonts |
####ラテンフォント |
| * https://fontlibrary.org/en (GFS Bodoni) |
* https://fontlibrary.org/en(GFS Bodoni) |
| * https://fonts.google.com/ |
* https://fonts.google.com/ |
| * http://iginomarini.com/fell/the-revival-fonts/ |
* http://iginomarini.com/fell/the-revival-fonts/ |
| * http://scholarsfonts.net/ (Cardo) |
* http://scholarsfonts.net/(カルド) |
| * http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=FontDownloads (SIL Fonts) |
* http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=FontDownloads(SIL Fonts) |
| * http://www.ctan.org/tex-archive/fonts (GFS Bodoni) |
* http://www.ctan.org/tex-archive/fonts(GFS Bodoni) |
| * http://www.steffmann.de/wordpress/test-2/ |
* http://www.steffmann.de/wordpress/test-2/ |
| #### Devanagari Fonts |
#### Devanagariフォント |
| * Aksharayogini2 |
* Aksharayogini2 |
| * AksharayoginiBoldItalic |
* AksharayoginiBoldItalic |
| * AksharayoginiBold |
* AksharayoginiBold |
| * AksharayoginiItalic |
* AksharayoginiItalic |
| * Aksharayogini |
* Aksharayogini |
| * Ananda Akchyar Devanagari |
* Ananda Akchyar Devanagari |
| * AnnapurnaSIL |
* AnnapurnaSIL |
| * CDAC-Surekh Bold |
* CDAC-Surekh Bold |
| * CDAC-Surekh Normal |
* CDAC-Surekh Normal |
| * CDAC-Yogesh Bold |
* CDAC-Yogesh Bold |
| * CDAC-Yogesh Italic |
* CDAC-Yogesh Italic |
| * CDAC-Yogesh Normal |
* CDAC-Yogesh Normal |
| * Chandas |
* Chandas |
| * Gotu |
* Gotu |
| * Jaini |
* Jaini |
| * Jaini Purva |
* Jaini Purva |
| * Lohit Devanagari |
* Lohit Devanagari |
| * Nakula |
* Nakula |
| * Mukta |
* Mukta |
| * Murty Hindi |
* Murty Hindi |
| * Murty Sanskrit |
* Murty Sanskrit |
| * Sahadeva |
* Sahadeva |
| * Sanskrit2003 |
* Sanskrit2003 |
| * Santipur OT |
* Santipur OT |
| * Sharad76 |
* Sharad76 |
| * Shobhika |
* Shobhika |
| * Shree-DV0726-OT |
* Shree-DV0726-OT |
| * Siddhanta |
* Siddhanta |
| * Uttara |
* ウッタラ |
| * Yashomudra Fonts |
* Yashomudra Fonts |
| * Google Devanagari Fonts |
* Google Devanagari Fonts |
| * fonts from TDIL Hindi CD |
* TDILヒンディー語CDからのフォント |
| * Linked from Bihar Vidhan Parishad |
* Bihar Vidhan Parishadからリンク |
| * Linked from bih.nic.in |
* bih.nic.inからリンク |
| #### Fraktur Fonts |
#### Frakturフォント |
| * http://unifraktur.sourceforge.net/maguntia.html (UnifrakturMaguntia) |
* http://unifraktur.sourceforge.net/maguntia.html(UnifrakturMaguntia) |
| * http://www.orbitals.com/self/ligature/ligature.htm (Wyld) |
* http://www.orbitals.com/self/ligature/ligature.htm(Wyld) |
| * https://www.fontyukle.net/de/1,Walbaum |
* https://www.fontyukle.net/de/1,Walbaum |
| * http://de.ffonts.net/Walbaum-Fraktur.font.download |
* http://de.ffonts.net/Walbaum-Fraktur.font.download |
| * http://www.1001fonts.com/fraktur-fonts.html |
* http://www.1001fonts.com/fraktur-fonts.html |
| * http://www.dafont.com/fette-unz-fraktur.font |
* http://www.dafont.com/fette-unz-fraktur.font |
| * http://www.1001freefonts.com/fette_fraktur.font |
* http://www.1001freefonts.com/fette_fraktur.font |
| * http://www.ligafaktur.de/Schriften.html |
* http://www.ligafaktur.de/Schriften.html |
| * http://www.morscher.com/3r/fonts/fraktur.htm |
* http://www.morscher.com/3r/fonts/fraktur.htm |
| #### Hebrew Fonts |
####ヘブライ語フォント |
| * A list of Hebrew fonts from the Open Siddur Project |
* Open Siddurプロジェクトからのヘブライ語フォントのリスト |
| #### Collections of fonts |
####フォントのコレクション |
| * http://www.abstractfonts.com/ |
* http://www.abstractfonts.com/ |
| * http://www.schriftarten-fonts.de/ (German) |
* http://www.schriftarten-fonts.de/(ドイツ語) |
| ### More information on fonts |
###フォントに関するさらなる情報 |
| * https://en.wikipedia.org/wiki/Fraktur |
* https://en.wikipedia.org/wiki/Fraktur |
| * http://www.orbitals.com/self/ligature/ligature.htm 18th Century Ligatures and Fonts |
* http://www.orbitals.com/self/ligature/ligature.htm 18世紀の合字とフォント |
| * http://www.steffmann.de/wordpress/ (German) |
* http://www.steffmann.de/wordpress/(ドイツ語) |