home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1998 August / DPCB0898.iso / Home / Powerpro / INSTALL.CMP / PETMPLT.TXT < prev    next >
Text File  |  1997-06-13  |  8KB  |  272 lines

  1. //
  2. //
  3. //  PETMPLT.TXT
  4. //  Portuguese-English Sample Templates for Power Translator 6.x
  5. //
  6. //
  7.  
  8.  
  9. // *********************************************************************
  10. // NOUN DE NOUN = NOUN
  11. //
  12. // Example: dona de casa = housewife
  13. //
  14. // SOURCE.1 = dona; SOURCE.2 = casa; TARGET.1 = housewife
  15. // *********************************************************************
  16.  
  17. // RULESET1
  18. // Procedure = Top Traverse; Stage = Disambiguation; Key = SOURCE.1
  19.  
  20. <HasAttr Noun:"SOURCE.1">
  21. <HasAttr Preposition:"de">
  22. <HasAttr Noun && Word=="SOURCE.2">
  23. ==> <1 SetAttr Noun>
  24.     <2 SetAttr Preposition>
  25.     <3 SetAttr Noun
  26.        Strength=50>;
  27.  
  28.  
  29. // RULESET2
  30. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  31.  
  32. <NodeType NounBar>
  33.     /
  34.         <NodeType NounBar>
  35.             /
  36.             <NodeType NounTheta>
  37.                 /
  38.                 <IsAttr Noun:"SOURCE.1">
  39.                 \
  40.             \
  41.         <NodeType PrepositionPhrase>
  42.             /
  43.             <NodeType PrepositionBar && Primary.IsAttr Preposition:"de">
  44.             <NodeType NounPhrase>
  45.                 /
  46.                 <NodeType NounBar>
  47.                     /
  48.                     <NodeType NounTheta>
  49.                         /
  50.                         <Word=="SOURCE.2">
  51.                         \
  52.                     \
  53.                 \
  54.             \
  55.         \
  56.         ==> <1>
  57.                 /
  58.                 <1.1.1>
  59.                     /
  60.                     <1.1.1.1 Target.ChangeWord "TARGET.1">
  61.                     \
  62.                 <1.1 Delete>
  63.                 <1.2 Delete>
  64.                 <1.2.1 Delete>
  65.                 <1.2.2 Delete>
  66.                 <1.2.2.1 Delete>
  67.                 <1.2.2.1.1 Delete>
  68.                 <1.2.2.1.1.1 Delete>
  69.                 \;
  70.  
  71.  
  72. // *********************************************************************
  73. // NOUN1 DE NOUN2 = NOUN2 NOUN1
  74. //
  75. // Example: certidπo de nascimento = birth certificate
  76. // Example: agΩncia de viagens = travel agency
  77. //
  78. // SOURCE.1 = certidπo; SOURCE.2 = nascimento;
  79. // TARGET.1 = birth; TARGET.2 = certificate
  80. // *********************************************************************
  81.  
  82. // RULESET1
  83. // Procedure = Top Traverse; Stage = Disambiguation; Key = SOURCE.1
  84.  
  85. <HasAttr Noun:"SOURCE.1">
  86. <HasAttr Preposition:"de">
  87. <HasAttr Noun && Word=="SOURCE.2">
  88. ==> <1 SetAttr Noun>
  89.     <2 SetAttr Preposition>
  90.     <3 SetAttr Noun
  91.        Strength=50>;
  92.  
  93.  
  94. // RULESET2
  95. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  96.  
  97. <NodeType NounBar>
  98.         /
  99.         <NodeType NounBar>
  100.             /
  101.             <NodeType NounTheta>
  102.                 /
  103.                 <IsAttr Noun:"SOURCE.1">
  104.                 \
  105.             \
  106.         <NodeType PrepositionPhrase>
  107.             /
  108.             <NodeType PrepositionBar && Primary.IsAttr Preposition:"de">
  109.             <NodeType NounPhrase>
  110.                 /
  111.                 <NodeType NounBar>
  112.                     /
  113.                     <NodeType NounTheta>
  114.                         /
  115.                         <Word=="SOURCE.2">
  116.                         \
  117.                     \
  118.                 \
  119.             \
  120.         \
  121.         ==> <1>
  122.                 /
  123.                 <1.1.1>
  124.                     /
  125.                     AddStringNode "TARGET.1"
  126.                     <1.1.1.1 Target.ChangeWord "TARGET.2">
  127.                     \
  128.                 <1.1 Delete>
  129.                 <1.2 Delete>
  130.                 <1.2.1 Delete>
  131.                 <1.2.2 Delete>
  132.                 <1.2.2.1 Delete>
  133.                 <1.2.2.1.1 Delete>
  134.                 <1.2.2.1.1.1 Delete>
  135.                 \;
  136.  
  137.  
  138. // =====================================================================
  139. // NOUN ADJECTIVE = ADJECTIVE NOUN (Idiomatic usage)
  140. //
  141. // Examples: acolhida calorosa = warm welcome
  142. //           dφvida externa = foreign debt
  143. //
  144. // SOURCE.1 = acolhida; SOURCE.2 = calorosa;
  145. // TARGET.1 = warm; TARGET.2 = welcome
  146. //
  147. // Notice that the adjective is in its non-inflected form.
  148. // *********************************************************************
  149.  
  150. // RULESET1
  151. // Procedure = Top Traverse; Stage = Disambiguation; Key = SOURCE.1
  152.  
  153. <HasAttr Noun:"SOURCE.1">
  154. <HasAttr Adjective:"SOURCE.2">
  155.         ==> <1 SetAttr Noun>
  156.             <2 SetAttr Adjective>;
  157.  
  158.  
  159. // RULESET2
  160. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  161.  
  162. <NodeType NounBar>
  163.         /
  164.         <NodeType NounTheta>
  165.             /
  166.             <IsAttr Noun:"SOURCE.1">
  167.             \
  168.         \
  169.     <NodeType AdjectivePhrase>
  170.         /
  171.         <NodeType AdjectiveBar>
  172.             /
  173.             <IsAttr Adjective:"SOURCE.2">
  174.             \
  175.         \
  176.         ==> <2>
  177.                 /
  178.                 <2.1>
  179.                     /
  180.                     <2.1.1 Target.ChangeWord "TARGET.1">
  181.                     \
  182.                 \
  183.             <1>
  184.                 /
  185.                 <1.1>
  186.                     /
  187.                     <1.1.1 Target.ChangeWord "TARGET.2">
  188.                     \
  189.                 \;
  190.  
  191.  
  192. // *********************************************************************
  193. //
  194. //  VERB FRAMES
  195. //
  196. // *********************************************************************
  197.  
  198.  
  199. // *********************************************************************
  200. // VERB + DIRECT OBJECT ==> VERB
  201. //
  202. // Example: contrair matrim⌠nio ==> get married
  203. //
  204. // SOURCE.1 = contrair; SOURCE.2 = matrim⌠nio; TARGET.1 = get married
  205. //
  206. // "contrair" Obj (SX_Direct, Word=="matrim⌠nio")
  207. //     ==> "get married" Make (SX_Direct,SX_Direct,Primary.Target.Hidden=True);
  208. // *********************************************************************
  209.  
  210. // RULESET1
  211. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1
  212.  
  213. "SOURCE.1" Obj(SX_Direct,Primary.Word=="SOURCE.2")
  214.     ==> "TARGET.1" Make (SX_Direct,SX_Direct,Primary.Target.Hidden=True);
  215.  
  216.  
  217. // *********************************************************************
  218. // VERB + DIRECT OBJECT ==> VERB(different meaning) + DIRECT OBJECT
  219. //
  220. // Example: despedir um profissional ==> fire someone
  221. //
  222. // SOURCE.1 = despedir; TARGET.1 = fire
  223. //
  224. // "despedir" Obj (SX_Direct, Primary.IsAttr Noun+Occupation)
  225. //     ==> "fire";
  226. // *********************************************************************
  227.  
  228. // RULESET1
  229. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1
  230.  
  231. "SOURCE.1" Obj(SX_Direct,Primary.IsAttr Noun)
  232.     ==> "TARGET.1";
  233.  
  234.  
  235. // *********************************************************************
  236. // VERB  + PREPOSITIONAL OBJECT ==> VERB + DIRECT OBJECT
  237. //
  238. // Example: recordar-se de ==> remember
  239. //
  240. // SOURCE.1 = recordar-se; SOURCE.2 = de; TARGET.1 = remember
  241. //
  242. // "recordar-se" Obj ("de")
  243. //     ==> "remember" Make ("de",SX_Direct);
  244. // *********************************************************************
  245.  
  246. // RULESET1
  247. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1 (non-reflexive form)
  248.  
  249. "SOURCE.1" Obj("SOURCE.2")
  250.     ==> "TARGET.1" Make("SOURCE.2",SX_Direct);
  251.  
  252.  
  253. // *********************************************************************
  254. // VERB  + PREPOSITIONAL OBJECT ==> VERB + PREPOSITIONAL OBJECT
  255. //
  256. // Example: preocupar-se com ==> worry about
  257. //
  258. // SOURCE.1 = preocupar-se; SOURCE.2 = com; TARGET.1 = worry TARGET.2 = about
  259. //
  260. // "preocupar-se" Obj ("com")
  261. //     ==> "worry" Make ("com","about");
  262. // *********************************************************************
  263.  
  264. // RULESET1
  265. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1 (non-reflexive form)
  266.  
  267. "SOURCE.1" Obj("SOURCE.2")
  268.     ==> "TARGET.1" Make("SOURCE.2", "TARGET.2");
  269.  
  270.  
  271.  
  272.