-
Notifications
You must be signed in to change notification settings - Fork 169
If the makeotf command path contains Hangul, a UnicodeDecodeError is raised. #719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@sandoll what command line options did you use? |
The command line I used was: |
I haven't been able to reproduce this problem, so here's a few more questions:
|
In addition, makeotf_commands.bat file exists in the path of "F:\OneDrive - (주)산돌커뮤니케이션[AK-9]fontgen", and the content of this batch file is "makeotf -f cidfont.ps -o output.otf -fi cidfontinfo -ff output_feature.txt -mf .\FontMenuNameDB -cs 3 -cl 23 -ch UniAKR-UTF32-H -nshw -r".'
Running makeotf_commands.bat on the "D:\OneDrive - (S)sandoll[AK-9]fontgen" path will produce the font without any problems, UnicodeDecodeError occurs when the absolute path simply contains Hangul. |
Keep in mind that modern hangul syllables, such as U+C8FC 주, decompose into sequences of two or three combining jamo, such as <U+110C,U+116E> in this case. File systems often apply Normalization Form NFD, and I think that this explains the errors. |
This is certainly a bug that needs to be fixed. I suspect I need to install the necessary language pack in order to reproduce the bug, as on my English Windows 10 system , I can create a directory named '주', but the Python os.path methods show this as only Unicode 63, '?". |
@sandoll can you install the AFDKO on Python 3 and test if this problem still persists? |
In the process, I learned that on Python 2.7 Windows |
@miguelsousa I downloaded b092bc5 as a temporary fix and replaced fdkutils.py on the C:\Python27\Lib\site-packages\afdko path. I will soon switch to Python 3 as the only workaround you have noticed. |
@miguelsousa
|
@sandoll can't reproduce it. Please uninstall the afdko (
|
@miguelsousa I found the option below and solved the problem!!!! Thank you so much for checking :) |
I installed AFDKO using pip, and the version of
makeotf
is as follows. :makeotf.py v2.6.0 Dec 7 2018
I am using OneDrive and the account name includes "(주)산돌커뮤니케이션", so I get the following error when using
makeotf
.If you use
makeotfexe
in the same path, you can make fonts without problems.The text was updated successfully, but these errors were encountered: