Questions tagged [katakana]

5 questions
2
votes
1 answer

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 for me to determine that the width of ヌ is twice…
Ole Tange
  • 31,768
  • 5
  • 86
  • 104
0
votes
1 answer

How can I make this regex shorter

Let's say I have a line of text like…
0
votes
1 answer

Angular 2: Katakana Regex

I want to validate if the inputted text is in Katakana. I have this: Validators.pattern('[\u30A0-\u30FF]+') But I also want to accept spaces in between. What should I add?
Char
  • 2,073
  • 8
  • 28
  • 45
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
-1
votes
2 answers

Java replace Japanese characters with \\p{Katakana} regular expression

i have followed that link and the user "slevithan" offer using \p{Katakana} public static void main(String[] args) { String str = "マイポケット (1).csv"; str= str.replaceAll( "[\\p{Katakana}]", "_");//.replaceAll("\\p{Z}", "_"); …
2Big2BeSmall
  • 1,348
  • 3
  • 20
  • 40