Exemplo n.º 1
0
  /** Override of LanguageEntity function. */
  public String getRomanForm(boolean bIncludeMeasureWord) {
    trace("Entering CountableNoun.getRomanForm with bIncludeMeasureWord=" + bIncludeMeasureWord);
    trace("and m_sLanguageCode = " + m_sLanguageCode);

    StringBuffer sb = new StringBuffer();

    if (bIncludeMeasureWord) {
      sb.append(getRomanForm_GenerateArticleOrMeasureWord());
      sb.append(' ');
    }

    sb.append(m_sRomanForm);
    return sb.toString();
  }
Exemplo n.º 2
0
  /** Override of LanguageEntity function. */
  public String getChineseChars(boolean bIncludeMeasureWord) {
    StringBuffer sb = new StringBuffer();

    if (m_sLanguageCode.toLowerCase().equals("zh")) {
      if (bIncludeMeasureWord && (m_sMeasureWordScript != null)) {
        // Append the character for "yi" (one).
        sb.append("\u4E00");

        sb.append(m_sMeasureWordScript);
      }
    }

    sb.append(m_sNativeForm);
    return sb.toString();
  }