Questions tagged [kana]

Kana are the syllabic Japanese scripts, as opposed to the logographic Chinese characters known in Japan as kanji (漢字) and the Roman alphabet known as rōmaji. There are three kana scripts: modern cursive hiragana (ひらがな), modern angular katakana (カタカナ), and the old syllabic use of kanji known as man’yōgana (万葉仮名) that was ancestral to both.

17 questions
33
votes
3 answers

Using JavaScript to check whether a string contains Japanese characters (including kanji)

How can I check whether a given string contains one or more Japanese characters (consisting of kana and/or kanji)? I saw a similar question here: How can I check if variable contains Chinese/Japanese characters? , and I used the solution to come up…
Josh1billion
  • 14,837
  • 8
  • 38
  • 48
17
votes
3 answers

Check whether a string contains Japanese/Chinese characters

I need a way to check whether a string contains Japanese or Chinese text. Currently I'm using this: string.match(/[\u3400-\u9FBF]/); but it does not work with this for example: ディアボリックラヴァーズ or バッテリー. Could you help me with that? Thanks
Frank
  • 2,083
  • 8
  • 34
  • 52
4
votes
2 answers

Javascript regex alphanumeric english and japanese

I am trying to make a regex that only allows chars A-Z + ints 0 - 9 together with dash - and underscore _ but also Japanese chars. $.validator.addMethod("alphaDash", function(value, element) { return this.optional(element) ||…
Kiow
  • 870
  • 4
  • 18
  • 32
3
votes
2 answers

Sorting Japanese Characters (Kanji, Hiragana, Katakana) in MySQL

I'm familiar with the different MySQL collations, my DB is currently set UTF8_general_ci, and I was searching semi-successfully using UTF8_unicode_ci. I'm running mysql 5.6, and I can't use the newest collations, without a headache in upgrading. I…
mcgruff14
  • 318
  • 2
  • 15
3
votes
2 answers

Kana (not Kanji) handwriting recognition in iOS

Daijirin dictionary app (http://itunes.apple.com/us/app/da-ci-lin/id299029654?mt=8) allows handwritten Hiragana and Katakana input via an interface that I can’t figure out how to access in any other application. Here is a photo:…
user1502673
  • 31
  • 1
  • 2
1
vote
1 answer

Regex/Method to comment a Japanese text

I have a large text file of the below format. { "glossary": { "title": "example glossary", cm="私は今プログラミングーをしています"; "text2": "example glossary", cm="私はABあああをしています" } I need to comment out the line which includes…
1
vote
0 answers

SKK for Kana to Kanji inverter

I'm using kakasi inverter to convert Kanji characters to Romaji like in the following echo "日本が好きです。" | kakasi -i euc -Ha -Ka -Ja -Ea -ka -s -iutf8 -outf8 nippon ga suki desu . KAKASI is a simple Kanji to Kana inverter based on dictionaries. Doing…
loretoparisi
  • 15,724
  • 11
  • 102
  • 146
1
vote
0 answers

Save data in single byte Kana for japanese language

I have a situation where I am storing bank name for Japanese culture for Japan. So the problem is we found the Bank Name which should be kana is saving as Double bytes Kanji in Database. The image below is being displayed as double byte This is how…
Abhishek
  • 33
  • 7
1
vote
1 answer

Python encoding error " Non-ASCII character '\xff' ..." allthough coding is declared as "# -*- coding: utf-8 -*-" while writing Hiragana

I'm new to python and I'm getting this error: SyntaxError: Non-ASCII character '\xff' in file 'hiragana.py' on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details This is my code: # -*- coding: utf-8…
Nopx
  • 395
  • 6
  • 12
1
vote
1 answer

How to sort Japanese characters with emacs?

I'd like to know if there is a way to sort a column of words written in hiragana, according to the Gojūon ordering, preferably using emacs. Is there an easy way to do this, like assigning custom numerical values to the characters, and sorting…
zuggg
  • 111
  • 3
0
votes
0 answers

How to create tests for kana (katakana/hiragana) using selenoid?

We want to write e2e tests for the Katakana method using Selenoid. But how we can realize it? There is should be exactly Latin input that converts into Katakana/Hiragana symbols. Is there anybody here who has ideas or experiences about it?
diffurchik
  • 21
  • 3
0
votes
0 answers

How do I make japanese text italic in Chrome?

I have a div whose contents the user can edit, since it has the attribute contenteditable="true". The user can type Chinese, Japanese, or Korean text in there, and style it as bold, italic, or underline. All works well in Firefox. But not in Chrome,…
MikeMichaels
  • 454
  • 1
  • 6
  • 25
0
votes
1 answer

PHP TCPDF - Half-width kana is being considered as Full-width

I'm having a problem with rendering a string of text that contains half-width kana in a PDF. It considers the half-width kana to be full-width so it turns out something like this: This is my code snippet: PDF::Cell(15, 6, '商品コード', 1, 0, 'C', 0,…
Potayto
  • 37
  • 5
0
votes
1 answer

Check Half width Katakana character in COBOL

I'm working on RedHat6 and using COBOL. I wanna check every single digit of variable, if it's half width --> CONTINUE, Else --> DISPLAY ERROR. Basicly I list all half width characters in WHEN Clause of EVALUATE statement. Like this: PERFORM VARYING…
tieuquynd
  • 1
  • 1
0
votes
1 answer

Library to convert a Japanese sentence to kana in C#?

Is there any library in C# suport converting a Japanese sentence to kana? e.g. 私はスポーツが好きです。 --> わたしはスポーツがすきです。
Sam Black
  • 371
  • 5
  • 19
1
2