0

Is there any existing C++ function to determine given string has only furigana characters?

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
Thanigs
  • 73
  • 1
  • 6
  • Seems like a pretty specialized function - I'd expect no such thing. I'm not even sure there is an easy way to "check" if it is such or not. – Mats Petersson Jul 24 '13 at 12:42
  • Thanks Joachim Pileborg & Mats Petersson. – Thanigs Jul 24 '13 at 12:49
  • I don't understand the question. Furigana is a kind of text annotation, but the characters used for the annotation are not special characters, they are normal hiragana or katakana. So "only furigana characters" doesn't make sense, unless you mean a string consisting entirely of hiragana and katakana. – Mr Lister Jul 24 '13 at 14:35

1 Answers1

0

Furigana is about presentation, it does not exist "as is" in plain text (in C++ strings). This is like asking for a C++ function to detect bold characters.

Now, if you say "the string contains HTML tagged text", then you can parse the HTML tags and identify the furigana part. (http://www.w3.org/International/articles/ruby/)

Mihai Nita
  • 5,547
  • 27
  • 27