Looking for Holberg's passages in CroALa

Goal: check whether Latin literature passages used by Holberg occur in CroALa.

Procedure

  Ov. Metam. I, 91-2
  Pœna metusqve aberant, nec verba minantia fixo
  Ære Ligabantur.
  • First we have to turn the list into something manipulable. E. g. an XML file, where quotes and sources will be represented in this way:
  <cit>
    <bibl>Ov. Metam. I, 91-2</bibl>
      <quote>Poena metusqve aberant, nec verba minantia fixo<lb/>
      aere Ligabantur.<lb/></quote>
  </cit>
  • We produce an XML file from ODT using the XSL transformations already available in oXygen (it works!)
  • Using e. g. Search / Replace and regular expressions in oXygen, we modify the resulting file according to what's proposed above
  • Using XSL, or, even faster, oXygen's XPath + “save results” combination, we discard the bibl and everything inside it, leaving just what's inside the quote. The XPath for this is:
    //quote/text()
  • After some cosmetical search-and-replace, we use AntConc to transform quotes into n-grams, a list like this (we chose the setting for n-grams with maximum 3 elements):
morte dolores
si non
a genero
a genero fratrum
ab hospite
ab hospite tutus
aberant nec
aberant nec verba
abfuit arbor
accipit ille
acclinavit in
acclinavit in illum
acer eqvus
acer eqvus cum
ad imitandum
ad imitandum non
ad manes
ad manes junctae
ad superos
ad superos Astraea
aderisqve dolentibus
aditus et
aere canoro
aere Ligabantur
aeterna vocabat
aethera contra
...
  • Next, using e. g. sed editor, we transform the list of n-grams into regexps to cover orthographic variants in CroALa (u = v, ae = e = ę etc)
  • With a shell script we send the transformed list to CroALa
  • We need to know which queries were successful, i. e. which returned some results; this calls for further scripting
  • Finally, to present the results, we want to have a list of successful queries accessible for human browsing, i. e. turn them into hyperlinks connected to CroALa queries

First results: words in sequence, no stemming

Links after the number lead to CroALa queries on uppercase strings.

A second, slightly improved version of results (160 combinations found):

  1. AB+H?OSPITH?E = search found 1 occurrences;
  2. AC?CIPITH?+IL?LE = search found 1 occurrences;
  3. ACER+EQUUS = search found 1 occurrences;
  4. AD+IMITH?ANDUM = search found 12 occurrences;
  5. ADITH?US+ET = search found 3 occurrences;
  6. AD+MANES = search found 4 occurrences;
  7. AD+SUPEROS = search found 28 occurrences;
  8. ARCE+ET = search found 5 occurrences;
  9. ASTH?R[AO]?EA+RELIQUIT = search found 1 occurrences;
  10. AUREA+C[AO]?ELO = search found 2 occurrences;
  11. AURORA+CAPIL?LIS = search found 1 occurrences;
  12. C[AO]?ELESTH?UM+TH?ER?RAS = search found 1 occurrences;
  13. CEU+QUONDAM = search found 6 occurrences;
  14. COMITH?ATH?UR+EUNTH?EM = search found 8 occurrences;
  15. COM?MUNIA+NOBIS = search found 2 occurrences;
  16. CORPUS+ET = search found 94 occurrences;
  17. CREDO+AD = search found 1 occurrences;
  18. CUR?RUS+AURIGA = search found 1 occurrences;
  19. DE+FUNERE = search found 2 occurrences;
  20. DEPOSITH?URA+SITH?IM = search found 1 occurrences;
  21. DIUTH?URNIOR+ES?SET = search found 1 occurrences;
  22. DOMUM+SIBI = search found 1 occurrences;
  23. EQUUS+CUM = search found 2 occurrences;
  24. ES?SE+DEAM = search found 5 occurrences;
  25. ESTH?+DE = search found 337 occurrences;
  26. ESTH?+INTH?ER = search found 108 occurrences;
  27. ESTH?+OPTH?ARE = search found 1 occurrences;
  28. ESTH?+PH?[AO]?ETH?ON = search found 2 occurrences;
  29. ESTH?+QUOQUE = search found 37 occurrences;
  30. ESTH?+UIA = search found 39 occurrences;
  31. ETH?+LACRIMIS = search found 17 occurrences;
  32. ETH?+MODO = search found 62 occurrences;
  33. ETH?+PAUOR = search found 8 occurrences;
  34. ETH?+QUI = search found 678 occurrences;
  35. ETH?+QUID = search found 148 occurrences;
  36. ETH?+SCELERATH?A = search found 4 occurrences;
  37. ETH?+TH?ER?ROR = search found 4 occurrences;
  38. ETH?+TH?RES = search found 26 occurrences;
  39. ETH?+TH?ULIT = search found 14 occurrences;
  40. ETH?+UIRGO = search found 15 occurrences;
  41. EXANIMES+INTH?ER = search found 1 occurrences;
  42. EXPONITH?+CAUSAS = search found 1 occurrences;
  43. EX+RAPTH?O = search found 1 occurrences;
  44. EXTH?ULITH?+ORA = search found 1 occurrences;
  45. FAMA+TH?ENET = search found 1 occurrences;
  46. FONTH?IS+IN = search found 2 occurrences;
  47. FRATH?RUM+QUOQUE = search found 1 occurrences;
  48. FUGITH?+AUREA = search found 1 occurrences;
  49. FURIALE+UENENUM = search found 1 occurrences;
  50. GEMITH?U+SIC = search found 1 occurrences;
  51. GRATH?IA+RARA = search found 1 occurrences;
  52. H?EDER[AO]?E+ET = search found 9 occurrences;
  53. H?IC+QUI = search found 16 occurrences;
  54. H?IC+SITH?US = search found 18 occurrences;
  55. H?OSPES+AB = search found 4 occurrences;
  56. IL?LAM+NON = search found 24 occurrences;
  57. IL?LA+TH?IMORE = search found 1 occurrences;
  58. IL?LIC+TH?EMERARIUS = search found 1 occurrences;
  59. IM?MINETH?+EXITH?IO = search found 1 occurrences;
  60. IMPRUDENS+ET = search found 3 occurrences;
  61. IN+ARCE = search found 71 occurrences;
  62. IN+C[AO]?ELO = search found 373 occurrences;
  63. IN+IL?LUM = search found 80 occurrences;
  64. IN+LIQUIDAS = search found 2 occurrences;
  65. IN+PECTH?US = search found 13 occurrences;
  66. INTH?ER+NATH?OS = search found 15 occurrences;
  67. IN+UNA = search found 94 occurrences;
  68. IN+UNDA = search found 28 occurrences;
  69. IPSE+PROBATH?UR = search found 1 occurrences;
  70. ITH?ER+EST = search found 7 occurrences;
  71. IUNCTH?AM+SIBI = search found 1 occurrences;
  72. LACRIMIS+OCULOS = search found 1 occurrences;
  73. L[AO]?ETH?ITH?IA+EST = search found 2 occurrences;
  74. LEGITH?+IN = search found 9 occurrences;
  75. LITH?ORA+NORANT = search found 1 occurrences;
  76. LOCUS+AC?CIPIT = search found 1 occurrences;
  77. MAGIS+[AO]?ETH?ERA = search found 2 occurrences;
  78. MAGNIS+TH?AMEN = search found 1 occurrences;
  79. MEDIO+EST = search found 15 occurrences;
  80. ME+MISERAM = search found 15 occurrences;
  81. MIH?I+MORS = search found 7 occurrences;
  82. MIH?I+MORTH?E = search found 2 occurrences;
  83. MODO+SI = search found 16 occurrences;
  84. MOL?LES+ET = search found 9 occurrences;
  85. MONTH?IBUS+IN = search found 9 occurrences;
  86. MORIEMUR+IN = search found 2 occurrences;
  87. MORTH?E+DOLORES = search found 4 occurrences;
  88. NEC+FINIRE = search found 3 occurrences;
  89. NEC+MIH?I = search found 74 occurrences;
  90. NEC+UERBA = search found 8 occurrences;
  91. NOCETH?+ES?SE = search found 2 occurrences;
  92. NON+AUSUS = search found 13 occurrences;
  93. NON+CONSCIA = search found 3 occurrences;
  94. NON+H?OSPES = search found 3 occurrences;
  95. NON+OPTH?IMA = search found 1 occurrences;
  96. NON+TH?ENUIT = search found 4 occurrences;
  97. NUMEN+ADORET = search found 3 occurrences;
  98. NUNC+DUO = search found 2 occurrences;
  99. OMNES+ANIMAS = search found 2 occurrences;
  100. OPTH?IMA+QU[AO]?EQUE = search found 12 occurrences;
  101. ORBE+LOCUS = search found 2 occurrences;
  102. PALAM+UOX = search found 1 occurrences;
  103. PAN+PRIMUS = search found 1 occurrences;
  104. PAUOR+ET = search found 9 occurrences;
  105. PER+AMBAGES = search found 7 occurrences;
  106. PEREGRINUM+UT = search found 1 occurrences;
  107. PER+INSIDIAS = search found 6 occurrences;
  108. PER+STH?IGIAS = search found 2 occurrences;
  109. PER+SUM?MA = search found 8 occurrences;
  110. PH?[AO]?EBI+ET = search found 5 occurrences;
  111. PIETH?AS+ET = search found 20 occurrences;
  112. PR[AO]?ETH?EREA+AUT = search found 1 occurrences;
  113. PR[AO]?ETH?ER+SUA = search found 3 occurrences;
  114. PRIMUS+AMOR = search found 5 occurrences;
  115. PRIMUS+CALAMOS = search found 1 occurrences;
  116. PROBATH?+IPSE = search found 1 occurrences;
  117. PRUIN[AO]?E+ET = search found 5 occurrences;
  118. QUAM+LEX = search found 6 occurrences;
  119. QUEM+SI = search found 24 occurrences;
  120. QUID+IN = search found 127 occurrences;
  121. QUID+UULT = search found 4 occurrences;
  122. QUI+PROBAT = search found 3 occurrences;
  123. QUOQUE+GRATH?IA = search found 5 occurrences;
  124. RARA+EST = search found 6 occurrences;
  125. RECTH?OR+OLIMPI = search found 8 occurrences;
  126. SED+NOCET = search found 2 occurrences;
  127. SIBI+SANGUINE = search found 1 occurrences;
  128. SIC+OMNES = search found 15 occurrences;
  129. SIC+QUISQUE = search found 1 occurrences;
  130. SIGNA+DEDIT = search found 9 occurrences;
  131. SI+NON = search found 540 occurrences;
  132. SITH?US+EST = search found 31 occurrences;
  133. SOLATH?IA+MORTH?IS = search found 2 occurrences;
  134. SUA+LITH?ORA = search found 2 occurrences;
  135. SUB+H?AC = search found 28 occurrences;
  136. SUB+UERBERE = search found 6 occurrences;
  137. SUM?MA+CACUMINA = search found 6 occurrences;
  138. TH?EMERARIUS+ER?ROR = search found 1 occurrences;
  139. TH?ER?RAS+ASTH?R[AO]?EA = search found 2 occurrences;
  140. TH?ER?RASQUE+FRETH?UMQUE = search found 1 occurrences;
  141. TH?IMUIS?SE+PALAM = search found 1 occurrences;
  142. TH?ORTH?O+UOLITH?ANS = search found 1 occurrences;
  143. TH?RAH?ENS+PER = search found 1 occurrences;
  144. TH?RIA+CERBERUS = search found 2 occurrences;
  145. TH?RISTH?IOR+ET = search found 2 occurrences;
  146. TH?ULITH?+AD = search found 7 occurrences;
  147. UANAQUE+L[AO]?ETH?ITH?IA = search found 1 occurrences;
  148. UENITH?+EC?CE = search found 5 occurrences;
  149. UERBA+MINANTH?IA = search found 1 occurrences;
  150. UERBERE+TH?URBO = search found 1 occurrences;
  151. UER?RITH?+H?UMUM = search found 2 occurrences;
  152. UIA+DECLIUIS = search found 1 occurrences;
  153. UICTH?A+IACET = search found 4 occurrences;
  154. UISA+EST = search found 85 occurrences;
  155. UISCERA+MORSU = search found 2 occurrences;
  156. UITH?IBUS+ULMI = search found 1 occurrences;
  157. ULTH?IMA+C[AO]?ELESTH?UM = search found 1 occurrences;
  158. UNA+DUOS = search found 4 occurrences;
  159. UOX+NUL?LA = search found 2 occurrences;
  160. UULTH?+SIBI = search found 11 occurrences

First version, with some trigrams

First pass, 167 results:

  1. MORTH?E+DOLORES.* = search found 4 occurrences;
  2. SI+NON.* = search found 550 occurrences;
  3. A+GENERO.* = search found 1 occurrences;
  4. AB+H?OSPITH?E.* = search found 1 occurrences;
  5. AC?CIPITH?+IL?LE.* = search found 1 occurrences;
  6. ACER+EQUUS.* = search found 1 occurrences;
  7. AD+IMITH?ANDUM.* = search found 12 occurrences;
  8. AD+MANES.* = search found 4 occurrences;
  9. AD+SUPEROS.* = search found 28 occurrences;
  10. ADITH?US+ET.* = search found 3 occurrences;
  11. ARCE+ET.* = search found 5 occurrences;
  12. AURORA+CAPIL?LIS.* = search found 1 occurrences;
  13. CEU+QUONDAM.* = search found 6 occurrences;
  14. COMITH?ATH?UR+EUNTH?EM.* = search found 8 occurrences;
  15. COM?MUNIA+NOBIS.* = search found 2 occurrences;
  16. CONCORDES+ANIMA.* = search found 1 occurrences;
  17. CORPUS+ET.* = search found 98 occurrences;
  18. CREDO+AD.* = search found 1 occurrences;
  19. CUR?RUS+AURIGA.* = search found 2 occurrences;
  20. DE+FUNERE.* = search found 2 occurrences;
  21. DE+MES.* = search found 53 occurrences;
  22. DEPOSITH?URA+SITH?IM.* = search found 1 occurrences;
  23. DIUTH?URNIOR+ES?SET.* = search found 1 occurrences;
  24. DOMUM+SIBI.* = search found 1 occurrences;
  25. EQUUS+CUM.* = search found 2 occurrences;
  26. ES?SE+DEAM.* = search found 5 occurrences;
  27. ESTH?+DE.* = search found 1155 occurrences;
  28. ESTH?+DE+MES.* = search found 1 occurrences;
  29. ESTH?+INTH?ER.* = search found 198 occurrences;
  30. ESTH?+OPTH?ARE.* = search found 2 occurrences;
  31. ESTH?+QUOQUE.* = search found 37 occurrences;
  32. ESTH?+UN.* = search found 251 occurrences;
  33. ESTH?+UIA.* = search found 42 occurrences;
  34. ETH?+LACRIMIS.* = search found 17 occurrences;
  35. ETH?+LACRIMIS+OCULOS.* = search found 1 occurrences;
  36. ETH?+MODO.* = search found 68 occurrences;
  37. ETH?+PAUOR.* = search found 18 occurrences;
  38. ETH?+PAUOR+ET.* = search found 1 occurrences;
  39. ETH?+QUI.* = search found 2029 occurrences;
  40. ETH?+QUI+PROBAT.* = search found 1 occurrences;
  41. ETH?+QUID.* = search found 548 occurrences;
  42. ETH?+SCELERATH?A.* = search found 5 occurrences;
  43. ETH?+TH?ER?ROR.* = search found 12 occurrences;
  44. ETH?+TH?RES.* = search found 26 occurrences;
  45. ETH?+TH?ULIT.* = search found 14 occurrences;
  46. ETH?+TH?ULITH?+AD.* = search found 1 occurrences;
  47. ETH?+UIRGO.* = search found 15 occurrences;
  48. EX+RAPTH?O.* = search found 1 occurrences;
  49. EXANIMES+INTH?ER.* = search found 1 occurrences;
  50. EXPONITH?+CAUSAS.* = search found 1 occurrences;
  51. EXTH?ULITH?+ORA.* = search found 2 occurrences;
  52. FAMA+TH?ENET.* = search found 1 occurrences;
  53. FLUMINA+TH?ER?RA.* = search found 1 occurrences;
  54. FRATH?RUM+QUOQUE.* = search found 1 occurrences;
  55. FUGITH?+AUREA.* = search found 1 occurrences;
  56. FURIALE+UENENUM.* = search found 1 occurrences;
  57. GEMITH?U+SIC.* = search found 1 occurrences;
  58. GRATH?IA+RARA.* = search found 1 occurrences;
  59. H?IC+QUI.* = search found 83 occurrences;
  60. H?IC+SITH?US.* = search found 18 occurrences;
  61. H?IC+SITH?US+EST.* = search found 15 occurrences;
  62. H?IC+SPE.* = search found 8 occurrences;
  63. H?OSPES+AB.* = search found 6 occurrences;
  64. IL?LA+MARITH?I.* = search found 1 occurrences;
  65. IL?LA+TH?IMORE.* = search found 1 occurrences;
  66. IL?LAM+NON.* = search found 25 occurrences;
  67. IL?LIC+TH?EMERARIUS.* = search found 1 occurrences;
  68. IM?MINETH?+EXITH?IO.* = search found 1 occurrences;
  69. IMPRUDENS+ET.* = search found 3 occurrences;
  70. IN+ARCE.* = search found 100 occurrences;
  71. IN+ARCE+ET.* = search found 1 occurrences;
  72. IN+IL?LUM.* = search found 81 occurrences;
  73. IN+LIQUIDAS.* = search found 2 occurrences;
  74. IN+PECTH?US.* = search found 13 occurrences;
  75. IN+UNA.* = search found 174 occurrences;
  76. IN+UNDA.* = search found 78 occurrences;
  77. INTH?ER+NATH?OS.* = search found 15 occurrences;
  78. IPSE+PROBATH?UR.* = search found 1 occurrences;
  79. ITH?ER+EST.* = search found 7 occurrences;
  80. IE+L.* = search found 5 occurrences;
  81. IUNCTH?AM+SIBI.* = search found 1 occurrences;
  82. LACRIMIS+OCULOS.* = search found 1 occurrences;
  83. LITH?ORA+NORANT.* = search found 1 occurrences;
  84. LOCUS+AC?CIPIT.* = search found 2 occurrences;
  85. MAGNIS+TH?AMEN.* = search found 1 occurrences;
  86. ME+MISERAM.* = search found 15 occurrences;
  87. MEDIO+EST.* = search found 15 occurrences;
  88. MIH?I+MORS.* = search found 7 occurrences;
  89. MIH?I+MORTH?E.* = search found 2 occurrences;
  90. MODO+SI.* = search found 81 occurrences;
  91. MOL?LES+ET.* = search found 10 occurrences;
  92. NEC+FINIRE.* = search found 3 occurrences;
  93. NEC+MIH?I.* = search found 74 occurrences;
  94. NEC+UERBA.* = search found 8 occurrences;
  95. NOCETH?+ES?SE.* = search found 2 occurrences;
  96. NON+AUSUS.* = search found 13 occurrences;
  97. NON+CONSCIA.* = search found 3 occurrences;
  98. NON+H?OSPES.* = search found 3 occurrences;
  99. NON+OPTH?IMA.* = search found 1 occurrences;
  100. NON+TH?ENUIT.* = search found 4 occurrences;
  101. NUMEN+ADORET.* = search found 3 occurrences;
  102. NUNC+DUO.* = search found 2 occurrences;
  103. OMNES+ANIMAS.* = search found 2 occurrences;
  104. OMNIA+DII.* = search found 2 occurrences;
  105. ORBE+LOCUS.* = search found 2 occurrences;
  106. PALAM+UOX.* = search found 1 occurrences;
  107. PAN+PRIMUS.* = search found 1 occurrences;
  108. PAN+PRIMUS+CALAMOS.* = search found 1 occurrences;
  109. PAUOR+ET.* = search found 10 occurrences;
  110. PER+AMBAGES.* = search found 7 occurrences;
  111. PER+INSIDIAS.* = search found 6 occurrences;
  112. PER+STH?IGIAS.* = search found 2 occurrences;
  113. PER+SUM?MA.* = search found 23 occurrences;
  114. PER+SUM?MA+CACUMINA.* = search found 3 occurrences;
  115. PEREGRINUM+UT.* = search found 1 occurrences;
  116. PIETH?AS+ET.* = search found 25 occurrences;
  117. PRIMUS+AMOR.* = search found 5 occurrences;
  118. PRIMUS+CALAMOS.* = search found 1 occurrences;
  119. PROBATH?+IPSE.* = search found 1 occurrences;
  120. QUAM+LEX.* = search found 6 occurrences;
  121. QUEM+SI.* = search found 93 occurrences;
  122. QUEM+SI+NON.* = search found 1 occurrences;
  123. QUI+PROBAT.* = search found 7 occurrences;
  124. QUICUNQUE+SUB.* = search found 1 occurrences;
  125. QUID+UULT.* = search found 10 occurrences;
  126. QUID+UULTH?+SIBI.* = search found 1 occurrences;
  127. QUISQUE+LATH?ENTH?I.* = search found 1 occurrences;
  128. QUOQUE+GRATH?IA.* = search found 6 occurrences;
  129. RARA+EST.* = search found 6 occurrences;
  130. RECTH?OR+OLIMPI.* = search found 8 occurrences;
  131. SED+NOCET.* = search found 2 occurrences;
  132. SED+TH?IMIDI.* = search found 1 occurrences;
  133. SIBI+SANGUINE.* = search found 1 occurrences;
  134. SIC+OMNES.* = search found 15 occurrences;
  135. SIC+QUISQUE.* = search found 1 occurrences;
  136. SIGNA+DEDIT.* = search found 9 occurrences;
  137. SITH?US+EST.* = search found 31 occurrences;
  138. SOLATH?IA+MORTH?IS.* = search found 2 occurrences;
  139. SPE+CELER.* = search found 1 occurrences;
  140. SUA+LITH?ORA.* = search found 2 occurrences;
  141. SUB+H?AC.* = search found 33 occurrences;
  142. SUB+UERBERE.* = search found 6 occurrences;
  143. SUB+UERBERE+TH?URBO.* = search found 1 occurrences;
  144. SUM?MA+CACUMINA.* = search found 6 occurrences;
  145. TH?EMERARIUS+ER?ROR.* = search found 1 occurrences;
  146. TH?ER?RASQUE+FRETH?UMQUE.* = search found 1 occurrences;
  147. TH?IMIDI+EST.* = search found 4 occurrences;
  148. TH?IMUIS?SE+PALAM.* = search found 1 occurrences;
  149. TH?ORTH?O+UOLITH?ANS.* = search found 1 occurrences;
  150. TH?RAH?ENS+PER.* = search found 1 occurrences;
  151. TH?RIA+CERBERUS.* = search found 2 occurrences;
  152. TH?RISTH?IOR+ET.* = search found 2 occurrences;
  153. TH?ULITH?+AD.* = search found 10 occurrences;
  154. UNA+DUOS.* = search found 4 occurrences;
  155. UTH?+NIGRI.* = search found 1 occurrences;
  156. UENITH?+EC?CE.* = search found 5 occurrences;
  157. UERBA+MINANTH?IA.* = search found 1 occurrences;
  158. UERBERE+TH?URBO.* = search found 1 occurrences;
  159. UER?RITH?+H?UMUM.* = search found 2 occurrences;
  160. UIA+DECLIUIS.* = search found 1 occurrences;
  161. UICTH?A+IACET.* = search found 4 occurrences;
  162. UISA+EST.* = search found 85 occurrences;
  163. UISA+ESTH?+QUOQUE.* = search found 1 occurrences;
  164. UISCERA+MORSU.* = search found 2 occurrences;
  165. UITH?IBUS+ULMI.* = search found 1 occurrences;
  166. UOX+NUL?LA.* = search found 3 occurrences;
  167. UULTH?+SIBI.* = search found 11 occurrences;

Scripts used

1. zacroala.sh, transforms words into Philologic regexes.

#!/bin/bash
# Jovanovic, 2012-10, format a list of words for CroALa orthographic search
# usage: ./zacroala.sh filename
# take argument filename:
file=$1

# make various character replacements for Philologic crapser search:
cat  ${file} \
| tr '[:lower:]' '[:upper:]' \
| tr "JY" "I" \
| tr "V" "U" \
| tr " " "+" \
| sed 's/\([AO]\)E/[AO]?E/g' \
| sed 's/\([BCDFGHLMNPRST]\)\1/\1?\1/g' \
| sed 's/H/H?/g' \
| sed 's/T\([^TH?]\)/TH?\1/g' \
| sed 's/\(.*\)/\1*/g' - >> ${file}-zacroala

2. localcaula.sh, sends a list of queries (via curl) to a Philologic installation and sorts results into positives (with hits) and negatives (no occurrences found).

The HTMLized bash script is here.

3. zacr-rez.sh transforms a list of positive results into a HTML list with live links to CroALa.

#!/bin/bash
# Jovanovic, 2012-10, transforms a list of results into live links for CroALa
# usage: ./zacr-rez.sh filename
# take argument, find file
file=$1
sed 's/^\([^ ]\+\) \([^ ]\+\)/\1+\2/g' ${file} \
| sed 's/^\([^ ]\+\) \([^ ]\+\)/\1+\2/g' \
| sed 's/+=/ =/g' \
| sed 's#^\(.*\)\( =.*\)#<li><a href="http://www.ffzg.unizg.hr/klafil/croala/cgi-bin/search3t?dbname=croala\&word=\1\&OUTPUT=TF">\1</a>\2#g' > ${file}.html
# end of script
 
z/croala-holberg.txt · Last modified: 20. 10. 2012. 12:39 by njovanov
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki