Hi

I want to capitalize the first letter of the first word of every sentence. From 
the wiki I've found that it can be done using the case="caseFirstWord" 
attribute in chunk. This is what I've tried in my t1x file to capitalize 
personal pronouns:

   <rule comment="PRN: PERSONAL">
      <pattern>
        <pattern-item n="personal-pronoun"/>
      </pattern>
      
      <action>
        <out>
          <chunk name="pronoun" case="caseFirstWord">
            <tags><tag><lit-tag v="PRPERS"/></tag></tags>            
            <lu><clip pos="1" side="tl" part="whole"/></lu>
          </chunk>
        </out>
      </action>
    </rule>

But it isn't capitalizing the first letter as expected. For example, for the 
Bangla sentence "তুমি হাঁটছ।", the expected otuput is "You are walking", but 
I'm getting "you are walking". Output for "you" at different transfer stages 
are:

POS tagger: ^prpers<prn><p2><fam><aa><mf><sg><nom>$
apertium-transfer: ^pronoun<PRPERS>{^prpers<prn><subj><p2><mf><sp>$}$

apertium-interchunk: ^pronoun<PRPERS>{^prpers<prn><subj><p2><mf><sp>$}$

apertium-postchunk: ^prpers<prn><subj><p2><mf><sp>$

morphological generator: you
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to