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

  1. //
  2. //
  3. //  FETMPLT.TXT
  4. //  French-English Sample Templates for Power Translator 6.x
  5. //
  6. //
  7.  
  8.  
  9. // *********************************************************************
  10. // NOUN DE NOUN = NOUN
  11. //
  12. // Example: terrain d'aviation = airfield
  13. //
  14. // SOURCE.1 = terrain; SOURCE.2 = aviation; TARGET.1 = airfield
  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.  
  27.  
  28. // RULESET2
  29. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  30.  
  31. <NodeType NounPhrase> //1
  32.     /
  33.         <NodeType NounPhrase> //1.1
  34.             /
  35.             <NodeType NounBar> //1.1.1
  36.                 /
  37.                 <NodeType NounTheta> //1.1.1.1
  38.                     /
  39.                     <IsAttr Noun:"SOURCE.1"> //1.1.1.1.1
  40.                     \
  41.                 \
  42.             \
  43.         <NodeType PrepositionPhrase>
  44.             /
  45.             <NodeType PrepositionBar && Primary.IsAttr Preposition:"de">
  46.             <NodeType NounPhrase>
  47.                 /
  48.                 <NodeType NounBar>
  49.                     /
  50.                     <NodeType NounTheta>
  51.                         /
  52.                         <Word=="SOURCE.2">
  53.                         \
  54.                     \
  55.                 \
  56.             \
  57.         \
  58.         ==> <1>
  59.                 /
  60.                 <1.1.1>
  61.                    /
  62.                    <1.1.1.1>
  63.                     /
  64.                     <1.1.1.1.1 Target.ChangeWord "TARGET.1">
  65.                     \
  66.                    \
  67.                 <1.1 Delete>
  68.                 <1.2 Delete>
  69.                 <1.2.1 Delete>
  70.                 <1.2.2 Delete>
  71.                 <1.2.2.1 Delete>
  72.                 <1.2.2.1.1 Delete>
  73.                 <1.2.2.1.1.1 Delete>
  74.                 \;
  75.  
  76.  
  77.  
  78. // *********************************************************************
  79. // NOUN1 DE NOUN2 = NOUN2 NOUN1
  80. //
  81. // Examples: acte de naissance = birth certificate
  82. //           agence de voyages = travel agency
  83. //
  84. // SOURCE.1 = acte; SOURCE.2 = naissance;
  85. // TARGET.1 = birth; TARGET.2 = certificate
  86. // *********************************************************************
  87.  
  88. // RULESET1
  89. // Procedure = Top Traverse; Stage = Disambiguation; Key = SOURCE.1
  90.  
  91. <HasAttr Noun:"SOURCE.1">
  92. <HasAttr Preposition:"de">
  93. <HasAttr Noun && Word=="SOURCE.2">
  94. ==> <1 SetAttr Noun>
  95.     <2 SetAttr Preposition>
  96.     <3 SetAttr Noun>;
  97.  
  98.  
  99. // RULESET2
  100. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  101.  
  102. <NodeType NounPhrase>
  103.     /
  104.         <NodeType NounPhrase>
  105.             /
  106.             <NodeType NounBar>
  107.                 /
  108.                 <NodeType NounTheta>
  109.                     /
  110.                     <IsAttr Noun:"SOURCE.1">
  111.                     \
  112.                 \
  113.             \
  114.         <NodeType PrepositionPhrase>
  115.             /
  116.             <NodeType PrepositionBar && Primary.IsAttr Preposition:"de">
  117.             <NodeType NounPhrase>
  118.                 /
  119.                 <NodeType NounBar>
  120.                     /
  121.                     <NodeType NounTheta>
  122.                         /
  123.                         <Word=="SOURCE.2">
  124.                         \
  125.                     \
  126.                 \
  127.             \
  128.         \
  129.         ==> <1>
  130.                 /
  131.                 <1.1.1>
  132.                     /
  133.                     <1.1.1.1>
  134.                         /
  135.                         AddStringNode "TARGET.1"
  136.                         <1.1.1.1.1 Target.ChangeWord "TARGET.2">
  137.                         \
  138.                     \
  139.                 <1.1 Delete>
  140.                 <1.2 Delete>
  141.                 <1.2.1 Delete>
  142.                 <1.2.2 Delete>
  143.                 <1.2.2.1 Delete>
  144.                 <1.2.2.1.1 Delete>
  145.                 <1.2.2.1.1.1 Delete>
  146.                 \;
  147.  
  148.  
  149.  
  150. // *********************************************************************
  151. // NOUN ADJECTIVE = ADJECTIVE NOUN (Other than the natural translation)
  152. //
  153. // Example: accueil chaleureux = warm welcome
  154. //
  155. // SOURCE.1 = accueil; SOURCE.2 = chaleureux;
  156. // TARGET.1 = warm; TARGET.2 = welcome
  157. //
  158. // Notice that the adjective is in its non-inflected form.
  159. // *********************************************************************
  160.  
  161. // RULESET1
  162. // Procedure = Top Traverse; Stage = Disambiguation; Key = SOURCE.1
  163.  
  164. <HasAttr Noun:"SOURCE.1">
  165. <HasAttr Adjective:"SOURCE.2">
  166.         ==> <1 SetAttr Noun>
  167.             <2 SetAttr Adjective>;
  168.  
  169.  
  170. // RULESET2
  171. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  172.  
  173. <NodeType NounBar>
  174.         /
  175.         <NodeType NounTheta>
  176.             /
  177.             <IsAttr Noun:"SOURCE.1">
  178.             \
  179.         \
  180.     <NodeType AdjectivePhrase>
  181.         /
  182.         <NodeType AdjectiveBar>
  183.             /
  184.             <IsAttr Adjective:"SOURCE.2">
  185.             \
  186.         \
  187.         ==> <2>
  188.                 /
  189.                 <2.1>
  190.                     /
  191.                     <2.1.1 Target.ChangeWord "TARGET.1">
  192.                     \
  193.                 \
  194.             <1>
  195.                 /
  196.                 <1.1>
  197.                     /
  198.                     <1.1.1 Target.ChangeWord "TARGET.2">
  199.                     \
  200.                 \;
  201.  
  202. // *********************************************************************
  203. //
  204. //  VERB FRAMES
  205. //
  206. // *********************************************************************
  207.  
  208.  
  209. // *********************************************************************
  210. // VERB + DIRECT OBJECT ==> VERB + PREPOSITONAL OBJECT
  211. //
  212. // Example: chercher ==> look for
  213. //
  214. // SOURCE.1 = chercher; TARGET.1 = look; TARGET.2 = for
  215. //
  216. // "chercher" Obj (SX_Direct)
  217. //     ==> "look" Make (SX_Direct,"for");
  218. // *********************************************************************
  219.  
  220. // RULESET1
  221. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1
  222.  
  223. "SOURCE.1" Obj(SX_Direct)
  224.     ==> "TARGET.1" Make (SX_Direct, "TARGET.2");
  225.  
  226.  
  227. // *********************************************************************
  228. // VERB  + PREPOSITIONAL OBJECT ==> VERB + DIRECT OBJECT
  229. //
  230. // Example: se souvenir de ==> remember
  231. //
  232. // SOURCE.1 = souvenir; SOURCE.2 = de; TARGET.1 = remember
  233. //
  234. // "se souvenir" Obj ("de")
  235. //     ==> "remember" Make ("de",SX_Direct);
  236. // *********************************************************************
  237.  
  238. // RULESET1
  239. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1
  240.  
  241. "se SOURCE.1" Obj("SOURCE.2")
  242.     ==> "TARGET.1" Make("SOURCE.2",SX_Direct);
  243.  
  244.  
  245. // *********************************************************************
  246. // VERB  + PREPOSITIONAL OBJECT ==> VERB + PREPOSITIONAL OBJECT
  247. //
  248. // Example: couvrir de ==> cover with
  249. //
  250. // SOURCE.1 = couvrir; SOURCE.2 = de; TARGET.1 = cover TARGET.2 = de
  251. //
  252. // "couvrir" Obj ("de")
  253. //     ==> "cover" Make ("de","with");
  254. // *********************************************************************
  255.  
  256. // RULESET1
  257. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1
  258.  
  259. "SOURCE.1" Obj("SOURCE.2")
  260.     ==> "TARGET.1" Make("SOURCE.2", "TARGET.2");
  261.  
  262.  
  263.  
  264.