Questions tagged [cjk]
CJK stands for Chinese, Japanese and Korean and is used to label issues common to these East Asian languages and their large character repertoires.
1,110
questions
0
votes
0
answers
8
views
Issues with Sokuon Conversion in pykakasi Library for Japanese to Romaji Translation in Python
I am attempting to use the pykakasi library in Python to convert Japanese text to Romaji. However, I am encountering issues with the conversion of sokuon (促音). Here is the code I am using:
import ...
0
votes
0
answers
43
views
How to show `\` instead of special character `₩` in path separator for Windows Forms text-box?
My Windows Forms app displays a file path in a text-box. For our customers in Korea, this is shown as C:₩Users₩abc123₩my₩path instead of C:\Users\abc123\my\path. However, their command prompts, ...
0
votes
0
answers
11
views
Hashtag searches and Japanese full text search in elasticsearch
We are trying to incorporate hashtag searches and Japanese full text searches in our data. We were able to achieve them separately but when we try to combine the two configs together, it doesn't work ...
0
votes
0
answers
16
views
Cannot display Chinese words after iText flattenFields methods? How to create PdfFont() with 2 TTF font files?
I am using iText PDF ligrary to create PDF with following steps:
Manually create a PDF with form fields (e.g. text box) with input Chinese words
Some input Chinese words are rendered by PMINGLIU.ttf ...
-2
votes
0
answers
28
views
How can I fix Korean characters tearing on VSC?
I'm a Korean developer. I mostly use VSC for coding, and I treat .bat, .cpp, .c, .py files.
The VSC terminal is currently set to chcp 949(which I heard extension of EUC-KR). When I compile some files ...
2
votes
0
answers
42
views
In matlab, How can I display both Chinese characters and LaTeX symbols in a label? [duplicate]
How to display both Chinese characters and LaTeX symbols in a label?
if I use latex Interpreter, there are some error:
close
clear
x = 0:0.01:2*pi;
y = sin(x);
figure;
plot(x, y);
xlabel( '$\text{...
1
vote
1
answer
92
views
Problem with size of custom MFC control when Language is set to Japanese
I look after the DeepSkyStacker application.
If the system language is set to English, then DeepSkyStacker sets its own language to English, and its "Processing" panel (on the right) is ...
0
votes
1
answer
40
views
Javascript indexOf/charAt not working for Japanese half-width Katakana
In my codebase I have this code, surprisingly it returns 1:
'トゲ'.indexOf('ケ') // Returns 1
The character ケ doesn't seem to appear in string トゲ.
I also tried to run this code:
'トゲ'.charAt(1) // ...
0
votes
0
answers
31
views
Collecting data from a Chinese website using selenium
I'm in the business of collecting data from the site https://m.guazi.com/detail?clueId=129125011 with Selenium and I have encountered this problem, in the tag with the cost of the car I see some ...
2
votes
1
answer
60
views
How can I display English and CJK text sideways using CSS?
This is a topic visited by How can I draw vertical text with CSS cross-browser? 14 years ago, and there doesn't seem to be any clear solutions.
Ideally, I want both the CJK and the latin characters to ...
0
votes
1
answer
102
views
Chinese text not show using dompdf
Hello i want to convert html to pdf using dompdf, my HTML has Chinese text. In HTML view the Chinese text show very well, but when I convert to pdf the Chinese text only show square.
This is my code
$...
0
votes
0
answers
32
views
Write some chinese characters on a book type document
I'm trying to write a book type document and I need to put some chinese characters in it. I read an answer to a question in this page, but it doesn't work to me. Language of the document is spanish.
...
0
votes
0
answers
17
views
I need to give condition between english keyboard layout and japanese keyboard layout using jquery
The following code condition is Japanese keyboard keycode and If I change English keyboard layout it needs to work.
$('input,textarea,div#editorId').on('keydown', function(e) {
if ((e.shiftKey == ...
0
votes
1
answer
34
views
Nginx mapping Japanese URL to encoded file/folder names
I have file names written in encoded format. For example, this URL /2012年日本の旅/ is saved as: /2012%e5%b9%b4%e6%97%a5%e6%9c%ac%e3%81%ae%e6%97%85/index.html on Nginx server.
But Nginx does not serve the ...
-3
votes
1
answer
24
views
Chinese character displaying wrongly/differently on Windows
I notice the word 门 is displaying differently when it is being typed on certain applications such as the search bar in Chrome。
Some website are also showing the wrong character.
[
This only happens in ...
0
votes
1
answer
83
views
SpeechSynthesis API on iOS 17 failed with certain text
let voice = null;
function updateVoice() {
voice = speechSynthesis.getVoices().find(voice => voice.lang == 'zh-CN')
document.getElementById('voice_name').textContent = voice?.name ?? '(No Voice)...
0
votes
1
answer
59
views
Running an IME with Qt Widget
I can't get an IME to work with a Qt Widget (the goal is to write Japanese characters with a western keyboard). I can't activate the IME in the taskbar when I launch a simple test software (a ...
0
votes
2
answers
108
views
NLTK sentence_bleu() returns 0 while evaluating Chinese sentences
I'm trying to evaluate Chinese sentence BLEU scores with NLTK's sentence_bleu() function. The code is as follows:
import nltk
import jieba
from transformers import AutoTokenizer, BertTokenizer, ...
-1
votes
1
answer
80
views
How do I do this with Chinese text?
The below works well for English, but not Chinese lyrics.
import pyautogui, time
time.sleep(5)
f = open('/Users/a27/爱.txt', 'r','UTF-8')
for word in f:
pyautogui.typewrite(word)
pyautogui....
1
vote
1
answer
80
views
How to deconstruct Hangul words into its alphabet components? [duplicate]
I'm trying to deconstruct a list of Korean words into its alphabet components in C# using the "FormD" normalization:
var text = "루돌프사슴코";
String a = text.Normalize(...
-1
votes
1
answer
245
views
How to detect if Chinese text contains simplified or traditional characters? [duplicate]
What would be a reliable way in Java to detect if a Chinese Unicode string contains Chinese simplified characters or traditional characters? The assumption is that characters that are common for both ...
-1
votes
1
answer
58
views
Redisearch return unexpected results with language chinese
schema
TagField("$.id", as_name="id"),
TextField("$.brand", as_name="brand"),
TextField("$.title", as_name="title"),
TextField("$....
0
votes
0
answers
58
views
Unicode: What Small Form Variants are used for?
There is an entire block in the Unicode containing punctuation symbols: Small Form Variants. Wikipedia says it was added “for compatibility with the Chinese National Standard CNS 11643.” CNS 11643 ...
0
votes
0
answers
41
views
How to display broken Japanese text correctly when Dompdf is used?
I am trying to export PDF file by using Dompdf.
Here, html code is converted to PDF.
PDF file export is working correctly.
日文字体Rounded Mgen 1p light.ttf file exist in 'vendor/dompdf/dompdf/libs/fonts'...
0
votes
1
answer
58
views
Fpdf Chinese characters showing random character outputs
I have just converted my chinese fonts (simhei) via fpdf makefont to postscript so that I can
use them in my fpdf output. So once I implement my Chinese text into my files, the characters
showing are ...
2
votes
1
answer
202
views
Korean characters reappear in text <input> after input value cleared and new KR characters typed
I am creating a project in which the user types Korean characters that are shown to them.
The first time a Korean character is typed, everything works as intended (fig. 1). But once the input field ...
0
votes
0
answers
19
views
How to display Extent Report with japanese? ( JAVA )
I working with client Japanese. So how i can to display Extent report to japanese?
I'm try this config but it didn't work
public static final ExtentReports extentReports = new ExtentReports(); ...
1
vote
0
answers
49
views
Handling multi-stage input language in UITextField
I have a regular UITextField in my view controller:
@IBOutlet private weak var textField: UITextField!
This text field has a delegate set to it, as well as an event listener. Whenever a text value ...
0
votes
2
answers
76
views
Why is Japanese considered not to have plural?
Why is Japanese declared as having Plural-Forms: nplurals=1; plural=0; - i.e. there is no difference between singular and plural?
While it is true that the word for the singular and plural forms of a ...
0
votes
0
answers
38
views
Korean text displays as ??? when outputting a column returned through adodb recordset
Korean text displays exactly as it should if I run a query in SQL Server Management Studio.
If I run a query with an adodb.recordset through an adodb.connection (using the MSOLEDBSQL provider), when I ...
0
votes
0
answers
258
views
PDF Fonts that support Japanese/Chinese Characters (𣘺) 𣘺
I am currently working on an application which generates PDF's. However Some of the Names to be displayed are in both Japanese and Chinese. The problem I ma facing is the currently as I have it I can ...
-2
votes
1
answer
63
views
Regex matching strings with mixture of Japanese and English characters
I have this script in PowerShell which I am going to use eventually to translate an XML file with some Japanese words and replace with the English. For now this is a simple regex matching example:
$...
-3
votes
1
answer
575
views
How can I write a SQL query to translate a column containing Chinese language to English?
The column called 'name' contains many rows of chinese language I can't read or understand. I want to convert this whole column to english but I have no clue how
I tried to look online as I'm new to ...
0
votes
0
answers
61
views
How can I fix the ElasticSearch kuromoji-readingform filter for Japanese fulltext search?
ElasticSearch Japanese fulltext kuromoji-readingform is not working
I have settings and query like this. My documents are "Medical development system" in three form of Japanese.
When I ...
0
votes
0
answers
181
views
Safari download Japanese filename showing encoded string
A java web app has a download function, running on Mac Ventura 13.3 of English. Safari(v16.4) uses default encoding Western ISO Latin 1. The browser lists a Japanese file of "Report ...
0
votes
1
answer
451
views
Check if Mix Full-Width and Half Width Japanese Characters JavaScript
Can anyone suggest how to check if the string is composed of a mix of full-width and half-width Japanese characters in JavaScript?
Mix Characters is composed of
Kana characters
Numbers
Special ...
0
votes
1
answer
50
views
I am trying to read a csv file and print it. I got what I wanted to do, but I'm not sure how I can print Korean characters
I have a csv file that includes Korean characters. But I am not sure how Korean can be printed in the code that I have.
The csv file looks like this:
name,hp,damage
대학오리,20,5
대학냥이,30,10
시계탑기린,100,20
...
0
votes
1
answer
49
views
I'm trying to convert a Korean otf font to json so that I can use it as Text3D in R3F, but it's not showing up properly
Facetype.js isn't allowing me to convert Korean fonts when 'reverse font direction' is selected.
Also, if I generate the json font without that selected characters overlap, and the order is backwards.
...
1
vote
1
answer
133
views
How does one type pitch accent indicators?
In a lot of posts in here I've seen people using the method I prefer to represent pitch, with red lines that follow the binary contour, such as:
やかん{HLL}
Is there a way to do that without typing HLL ...
0
votes
0
answers
33
views
How to install package ngram support for japanese with Mysql 5.6?
I see document of mysql about ngram enter link description here support version 5.7 then it will be pre-installed but i use version 5.6, I want to install it manually, is it possible?
0
votes
0
answers
24
views
CJK full-width characters as Python names: how does Python deal with it and is it common in other programming languages? [duplicate]
Not only ASCII, but also other Unicode characters can be used as names in Python. For example:
my_variable = 'var 1' # Normal ASCII characters as name
我的变量 = 'var 2' # Chinese characters as name
...
0
votes
1
answer
25
views
URL Encoding Questions for Results of Loading File Names with 'os.scandir' (or os.listdir)
I've already posted a question, and I found an item that is believed to be the cause of the problem, but I'm inquiring again about the solution.
The cause is no other than os.When you URL encode the ...
1
vote
1
answer
707
views
Python, using pdfplumber, pdfminer packages extract text from pdf, bolded characters duplicates
Goal: extract Chinese financial report text
Implementation: Python pdfplumber/pdfminer package to extract PDF text to txt
problem: for PDF text in bold, corresponding extracted text in txt duplicates
...
1
vote
1
answer
206
views
Itext sharp/Itext 5 display Chinese characters
I am using itextsharp version 5.5.13.2
I am trying the solution in How to display chinese characters in pdf file created with iTextSharp but it did not work it is not displaying anything. my document ...
0
votes
0
answers
91
views
Freetype2 Load_Char chinese character
I am trying to load characters with [FT_Get_Char_Index, FT_Load_Glyph] using freetype2. Everything goes fine until I try load a Chinese character, this text as eg: "汉语在语言系属分类中相当于一个语族的地位。".
I ...
1
vote
0
answers
47
views
Flutter how to compare two same Japanese strings which is differently encoded
I have a function in Flutter which gets two strings as parameters and returns the corresponding data from a converted csv file. String 1 is somewhere in the first row, and string 2 is somewhere in the ...
2
votes
0
answers
225
views
How to extract vertically-written text (in Japanese style) from png files in R
I'm trying to extract text from old posters written with a mix of Korean and Chinese languages in a vertical format (from top to bottom, and from right to left), as in the image attached in the url ...
2
votes
2
answers
193
views
Japanese OCR for GCP Document AI custom processor
I am training the GCP Document AI custom processor for my project. It seems the processor does not recognize Japanese text at all. Is there an option to enable Japanese language support?
2
votes
1
answer
167
views
Determine width in terminal of Asian/Japanese characters?
In my terminal these are equally wide:
ヌー平行
parallel
æøåüäöûß
I have managed to get Perl to give the length 8 for the last 2 lines, but it reports the length of the first line as 4. Is there a way ...