Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master quill by Andra?? Levstik (c88f41c568ef874c5f39b3a5ca28ff8ce0c929b5)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Andra?? Levstik <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master quill by Andra?? Levstik (c88f41c568ef874c5f39b3a5ca28ff8ce0c929b5)
  • Date: Wed, 7 Mar 2007 04:54:53 -0600

GIT changes to master quill by Andra?? Levstik <ruskie AT mages.ath.cx>:

var/lib/quill/ChangeLog | 6
var/lib/quill/modules/libcore | 263
+++++++++++++++++++++++++++++++++++++++
var/lib/quill/modules/libdetails | 4
var/lib/quill/version | 2
4 files changed, 274 insertions(+), 1 deletion(-)

New commits:
commit c88f41c568ef874c5f39b3a5ca28ff8ce0c929b5
Author: Andra?? Levstik <ruskie AT mages.ath.cx>
Commit: Andra?? Levstik <ruskie AT mages.ath.cx>

added a clear_html_specials function to clear stuff like: &lt; etc...

diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index 3f2911b..9553b70 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-07 Andra?? "ruskie" Levstik <ruskie AT mages.ath.cx>
+ * libcore: added a clear_html_specials function
+ * libdetails: run clear_html_specials function on finished DETAILS
+ don't want any of them in SHORT or LONG, added s-pecial handling for
+ berlios as well
+
2007-03-06 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcore: fixed saved sudo and gpg default query answer
fixed versioning to not loop anymore
diff --git a/var/lib/quill/modules/libcore b/var/lib/quill/modules/libcore
index 9861812..5c6bd4d 100644
--- a/var/lib/quill/modules/libcore
+++ b/var/lib/quill/modules/libcore
@@ -489,6 +489,269 @@ function andand_lines() {
mv "temporary-$file" "$file"
}

+
+#---
+## @Synopsis cleans out various special chars from html
+#---
+function clear_html_specials(){
+ local file="$1"
+ sed -i \
+ -e "s:&\(nbsp;\|#160;\):??:g" \
+ -e "s:&\(iexcl;\|#161;\):??:g" \
+ -e "s:&\(cent;\|#162;\):??:g" \
+ -e "s:&\(pound;\|#163;\):??:g" \
+ -e "s:&\(curren;\|#164;\):??:g" \
+ -e "s:&\(yen;\|#165;\):??:g" \
+ -e "s:&\(brvbar;\|#166;\):??:g" \
+ -e "s:&\(sect;\|#167;\):??:g" \
+ -e "s:&\(uml;\|#168;\):??:g" \
+ -e "s:&\(copy;\|#169;\):??:g" \
+ -e "s:&\(ordf;\|#170;\):??:g" \
+ -e "s:&\(laquo;\|#171;\):??:g" \
+ -e "s:&\(not;\|#172;\):??:g" \
+ -e "s:&\(shy;\|#173;\):??:g" \
+ -e "s:&\(reg;\|#174;\):??:g" \
+ -e "s:&\(macr;\|#175;\):??:g" \
+ -e "s:&\(deg;\|#176;\):??:g" \
+ -e "s:&\(plusmn;\|#177;\):??:g" \
+ -e "s:&\(sup2;\|#178;\):??:g" \
+ -e "s:&\(sup3;\|#179;\):??:g" \
+ -e "s:&\(acute;\|#180;\):??:g" \
+ -e "s:&\(micro;\|#181;\):??:g" \
+ -e "s:&\(para;\|#182;\):??:g" \
+ -e "s:&\(middot;\|#183;\):??:g" \
+ -e "s:&\(cedil;\|#184;\):??:g" \
+ -e "s:&\(sup1;\|#185;\):??:g" \
+ -e "s:&\(ordm;\|#186;\):??:g" \
+ -e "s:&\(raquo;\|#187;\):??:g" \
+ -e "s:&\(frac14;\|#188;\):??:g" \
+ -e "s:&\(frac12;\|#189;\):??:g" \
+ -e "s:&\(frac34;\|#190;\):??:g" \
+ -e "s:&\(iquest;\|#191;\):??:g" \
+ -e "s:&\(Agrave;\|#192;\):??:g" \
+ -e "s:&\(Aacute;\|#193;\):??:g" \
+ -e "s:&\(Acirc;\|#194;\):??:g" \
+ -e "s:&\(Atilde;\|#195;\):??:g" \
+ -e "s:&\(Auml;\|#196;\):??:g" \
+ -e "s:&\(Aring;\|#197;\):??:g" \
+ -e "s:&\(AElig;\|#198;\):??:g" \
+ -e "s:&\(Ccedil;\|#199;\):??:g" \
+ -e "s:&\(Egrave;\|#200;\):??:g" \
+ -e "s:&\(Eacute;\|#201;\):??:g" \
+ -e "s:&\(Ecirc;\|#202;\):??:g" \
+ -e "s:&\(Euml;\|#203;\):??:g" \
+ -e "s:&\(Igrave;\|#204;\):??:g" \
+ -e "s:&\(Iacute;\|#205;\):??:g" \
+ -e "s:&\(Icirc;\|#206;\):??:g" \
+ -e "s:&\(Iuml;\|#207;\):??:g" \
+ -e "s:&\(ETH;\|#208;\):??:g" \
+ -e "s:&\(Ntilde;\|#209;\):??:g" \
+ -e "s:&\(Ograve;\|#210;\):??:g" \
+ -e "s:&\(Oacute;\|#211;\):??:g" \
+ -e "s:&\(Ocirc;\|#212;\):??:g" \
+ -e "s:&\(Otilde;\|#213;\):??:g" \
+ -e "s:&\(Ouml;\|#214;\):??:g" \
+ -e "s:&\(times;\|#215;\):??:g" \
+ -e "s:&\(Oslash;\|#216;\):??:g" \
+ -e "s:&\(;\|#217;\):??:g" \
+ -e "s:&\(;\|#218;\):??:g" \
+ -e "s:&\(\|#219;\):??:g" \
+ -e "s:&\(|#220;\):??:g" \
+ -e "s:&\(Yacute;\|#221;\):??:g" \
+ -e "s:&\(THORN;\|#222;\):??:g" \
+ -e "s:&\(szlig;\|#223;\):??:g" \
+ -e "s:&\(agrave;\|#224;\):??:g" \
+ -e "s:&\(aacute;\|#225;\):??:g" \
+ -e "s:&\(acirc;\|#226;\):??:g" \
+ -e "s:&\(atilde;\|#227;\):??:g" \
+ -e "s:&\(auml;\|#228;\):??:g" \
+ -e "s:&\(aring;\|#229;\):??:g" \
+ -e "s:&\(aelig;\|#230;\):??:g" \
+ -e "s:&\(ccedil;\|#231;\):??:g" \
+ -e "s:&\(egrave;\|#232;\):??:g" \
+ -e "s:&\(eacute;\|#233;\):??:g" \
+ -e "s:&\(ecirc;\|#234;\):??:g" \
+ -e "s:&\(euml;\|#235;\):??:g" \
+ -e "s:&\(igrave;\|#236;\):??:g" \
+ -e "s:&\(iacute;\|#237;\):??:g" \
+ -e "s:&\(icirc;\|#238;\):??:g" \
+ -e "s:&\(iuml;\|#239;\):??:g" \
+ -e "s:&\(eth;\|#240;\):??:g" \
+ -e "s:&\(ntilde;\|#241;\):??:g" \
+ -e "s:&\(ograve;\|#242;\):??:g" \
+ -e "s:&\(oacute;\|#243;\):??:g" \
+ -e "s:&\(ocirc;\|#244;\):??:g" \
+ -e "s:&\(otilde;\|#245;\):??:g" \
+ -e "s:&\(ouml;\|#246;\):??:g" \
+ -e "s:&\(divide;\|#247;\):??:g" \
+ -e "s:&\(oslash;\|#248;\):??:g" \
+ -e "s:&\(ugrave;\|#249;\):??:g" \
+ -e "s:&\(uacute;\|#250;\):??:g" \
+ -e "s:&\(ucirc;\|#251;\):??:g" \
+ -e "s:&\(uuml;\|#252;\):??:g" \
+ -e "s:&\(yacute;\|#253;\):??:g" \
+ -e "s:&\(thorn;\|#254;\):??:g" \
+ -e "s:&\(yuml;\|#255;\):??:g" \
+ -e "s:&\(fnof;\|#402;\):??:g" \
+ -e "s:&\(Alpha;\|#913;\):??:g" \
+ -e "s:&\(Beta;\|#914;\):??:g" \
+ -e "s:&\(Gamma;\|#915;\):??:g" \
+ -e "s:&\(Delta;\|#916;\):??:g" \
+ -e "s:&\(Epsilon;\|#917;\):??:g" \
+ -e "s:&\(Zeta;\|#918;\):??:g" \
+ -e "s:&\(Eta;\|#919;\):??:g" \
+ -e "s:&\(Theta;\|#920;\):??:g" \
+ -e "s:&\(Iota;\|#921;\):??:g" \
+ -e "s:&\(Kappa;\|#922;\):??:g" \
+ -e "s:&\(Lambda;\|#923;\):??:g" \
+ -e "s:&\(Mu;\|#924;\):??:g" \
+ -e "s:&\(Nu;\|#925;\):??:g" \
+ -e "s:&\(Xi;\|#926;\):??:g" \
+ -e "s:&\(Omicron;\|#927;\):??:g" \
+ -e "s:&\(Pi;\|#928;\):??:g" \
+ -e "s:&\(Rho;\|#929;\):??:g" \
+ -e "s:&\(Sigma;\|#931;\):??:g" \
+ -e "s:&\(Tau;\|#932;\):??:g" \
+ -e "s:&\(n;\|#933;\):??:g" \
+ -e "s:&\(Phi;\|#934;\):??:g" \
+ -e "s:&\(Chi;\|#935;\):??:g" \
+ -e "s:&\(Psi;\|#936;\):??:g" \
+ -e "s:&\(Omega;\|#937;\):??:g" \
+ -e "s:&\(alpha;\|#945;\):??:g" \
+ -e "s:&\(beta;\|#946;\):??:g" \
+ -e "s:&\(gamma;\|#947;\):??:g" \
+ -e "s:&\(delta;\|#948;\):??:g" \
+ -e "s:&\(epsilon;\|#949;\):??:g" \
+ -e "s:&\(zeta;\|#950;\):??:g" \
+ -e "s:&\(eta;\|#951;\):??:g" \
+ -e "s:&\(theta;\|#952;\):??:g" \
+ -e "s:&\(iota;\|#953;\):??:g" \
+ -e "s:&\(kappa;\|#954;\):??:g" \
+ -e "s:&\(lambda;\|#955;\):??:g" \
+ -e "s:&\(mu;\|#956;\):??:g" \
+ -e "s:&\(nu;\|#957;\):??:g" \
+ -e "s:&\(xi;\|#958;\):??:g" \
+ -e "s:&\(omicron;\|#959;\):??:g" \
+ -e "s:&\(pi;\|#960;\):??:g" \
+ -e "s:&\(rho;\|#961;\):??:g" \
+ -e "s:&\(sigmaf;\|#962;\):??:g" \
+ -e "s:&\(sigma;\|#963;\):??:g" \
+ -e "s:&\(tau;\|#964;\):??:g" \
+ -e "s:&\(upsilon;\|#965;\):??:g" \
+ -e "s:&\(phi;\|#966;\):??:g" \
+ -e "s:&\(chi;\|#967;\):??:g" \
+ -e "s:&\(psi;\|#968;\):??:g" \
+ -e "s:&\(omega;\|#969;\):??:g" \
+ -e "s:&\(thetasym;\|#977;\):??:g" \
+ -e "s:&\(upsih;\|#978;\):??:g" \
+ -e "s:&\(piv;\|#982;\):??:g" \
+ -e "s:&\(bull;\|#8226;\):???:g" \
+ -e "s:&\(hellip;\|#8230;\):???:g" \
+ -e "s:&\(prime;\|#8242;\):???:g" \
+ -e "s:&\(Prime;\|#8243;\):???:g" \
+ -e "s:&\(oline;\|#8254;\):???:g" \
+ -e "s:&\(frasl;\|#8260;\):???:g" \
+ -e "s:&\(weierp;\|#8472;\):???:g" \
+ -e "s:&\(image;\|#8465;\):???:g" \
+ -e "s:&\(real;\|#8476;\):???:g" \
+ -e "s:&\(trade;\|#8482;\):???:g" \
+ -e "s:&\(alefsym;\|#8501;\):???:g" \
+ -e "s:&\(larr;\|#8592;\):???:g" \
+ -e "s:&\(uarr;\|#8593;\):???:g" \
+ -e "s:&\(rarr;\|#8594;\):???:g" \
+ -e "s:&\(darr;\|#8595;\):???:g" \
+ -e "s:&\(harr;\|#8596;\):???:g" \
+ -e "s:&\(crarr;\|#8629;\):???:g" \
+ -e "s:&\(lArr;\|#8656;\):???:g" \
+ -e "s:&\(uArr;\|#8657;\):???:g" \
+ -e "s:&\(rArr;\|#8658;\):???:g" \
+ -e "s:&\(dArr;\|#8659;\):???:g" \
+ -e "s:&\(hArr;\|#8660;\):???:g" \
+ -e "s:&\(forall;\|#8704;\):???:g" \
+ -e "s:&\(part;\|#8706;\):???:g" \
+ -e "s:&\(exist;\|#8707;\):???:g" \
+ -e "s:&\(empty;\|#8709;\):???:g" \
+ -e "s:&\(nabla;\|#8711;\):???:g" \
+ -e "s:&\(isin;\|#8712;\):???:g" \
+ -e "s:&\(notin;\|#8713;\):???:g" \
+ -e "s:&\(ni;\|#8715;\):???:g" \
+ -e "s:&\(prod;\|#8719;\):???:g" \
+ -e "s:&\(sum;\|#8721;\):???:g" \
+ -e "s:&\(minus;\|#8722;\):???:g" \
+ -e "s:&\(lowast;\|#8727;\):???:g" \
+ -e "s:&\(radic;\|#8730;\):???:g" \
+ -e "s:&\(prop;\|#8733;\):???:g" \
+ -e "s:&\(infin;\|#8734;\):???:g" \
+ -e "s:&\(ang;\|#8736;\):???:g" \
+ -e "s:&\(and;\|#8743;\):???:g" \
+ -e "s:&\(or;\|#8744;\):???:g" \
+ -e "s:&\(cap;\|#8745;\):???:g" \
+ -e "s:&\(cup;\|#8746;\):???:g" \
+ -e "s:&\(int;\|#8747;\):???:g" \
+ -e "s:&\(there4;\|#8756;\):???:g" \
+ -e "s:&\(sim;\|#8764;\):???:g" \
+ -e "s:&\(cong;\|#8773;\):???:g" \
+ -e "s:&\(asymp;\|#8776;\):???:g" \
+ -e "s:&\(ne;\|#8800;\):???:g" \
+ -e "s:&\(equiv;\|#8801;\):???:g" \
+ -e "s:&\(le;\|#8804;\):???:g" \
+ -e "s:&\(ge;\|#8805;\):???:g" \
+ -e "s:&\(sub;\|#8834;\):???:g" \
+ -e "s:&\(sup;\|#8835;\):???:g" \
+ -e "s:&\(nsub;\|#8836;\):???:g" \
+ -e "s:&\(sube;\|#8838;\):???:g" \
+ -e "s:&\(supe;\|#8839;\):???:g" \
+ -e "s:&\(oplus;\|#8853;\):???:g" \
+ -e "s:&\(otimes;\|#8855;\):???:g" \
+ -e "s:&\(perp;\|#8869;\):???:g" \
+ -e "s:&\(sdot;\|#8901;\):???:g" \
+ -e "s:&\(lceil;\|#8968;\):???:g" \
+ -e "s:&\(rceil;\|#8969;\):???:g" \
+ -e "s:&\(lfloor;\|#8970;\):???:g" \
+ -e "s:&\(rfloor;\|#8971;\):???:g" \
+ -e "s:&\(lang;\|#9001;\):???:g" \
+ -e "s:&\(rang;\|#9002;\):???:g" \
+ -e "s:&\(loz;\|#9674;\):???:g" \
+ -e "s:&\(spades;\|#9824;\):???:g" \
+ -e "s:&\(clubs;\|#9827;\):???:g" \
+ -e "s:&\(hearts;\|#9829;\):???:g" \
+ -e "s:&\(diams;\|#9830;\):???:g" \
+ -e "s:&\(quot;\|#34;\):\":g" \
+ -e "s:&\(amp;\|#38;\):&:g" \
+ -e "s:&\(lt;\|#60;\):<:g" \
+ -e "s:&\(gt;\|#62;\):>:g" \
+ -e "s:&\(OElig;\|#338;\):??:g" \
+ -e "s:&\(oelig;\|#339;\):??:g" \
+ -e "s:&\(Scaron;\|#352;\):??:g" \
+ -e "s:&\(scaron;\|#353;\):??:g" \
+ -e "s:&\(Yuml;\|#376;\):??:g" \
+ -e "s:&\(circ;\|#710;\):??:g" \
+ -e "s:&\(tilde;\|#732;\):??:g" \
+ -e "s:&\(ensp;\|#8194;\):???:g" \
+ -e "s:&\(emsp;\|#8195;\):???:g" \
+ -e "s:&\(thinsp;\|#8201;\):???:g" \
+ -e "s:&\(zwnj;\|#8204;\):???:g" \
+ -e "s:&\(zwj;\|#8205;\):???:g" \
+ -e "s:&\(lrm;\|#8206;\):???:g" \
+ -e "s:&\(rlm;\|#8207;\):???:g" \
+ -e "s:&\(ndash;\|#8211;\):???:g" \
+ -e "s:&\(mdash;\|#8212;\):???:g" \
+ -e "s:&\(lsquo;\|#8216;\):???:g" \
+ -e "s:&\(rsquo;\|#8217;\):???:g" \
+ -e "s:&\(sbquo;\|#8218;\):???:g" \
+ -e "s:&\(ldquo;\|#8220;\):???:g" \
+ -e "s:&\(rdquo;\|#8221;\):???:g" \
+ -e "s:&\(bdquo;\|#8222;\):???:g" \
+ -e "s:&\(dagger;\|#8224;\):???:g" \
+ -e "s:&\(Dagger;\|#8225;\):???:g" \
+ -e "s:&\(permil;\|#8240;\):???:g" \
+ -e "s:&\(lsaquo;\|#8249;\):???:g" \
+ -e "s:&\(rsaquo;\|#8250;\):???:g" \
+ -e "s:&\(euro;\|#8364;\):???:g" \
+ $file
+}
+
+
#---
## @Synopsis prints a colored error message
#---
diff --git a/var/lib/quill/modules/libdetails
b/var/lib/quill/modules/libdetails
index b4545d0..66f2043 100644
--- a/var/lib/quill/modules/libdetails
+++ b/var/lib/quill/modules/libdetails
@@ -22,6 +22,7 @@ function query_spell_source_url(){
SPELL_SRC_URL=$(sed -e
"s,http://prdownloads.sourceforge.net,$SOURCEFORGE_URL,"; \
-e
"s,http://downloads.sourceforge.net/\(.*\)?.*,$SOURCEFORGE_URL/\1," \
-e
"s,http://downloads.sourceforge.net/\(.*\),$SOURCEFORGE_URL/\1," \
+ -e
"s,http://prdownload.berlios.de/\(.*\),http://download.berlios.de/\1,"; \
-e
"s,http://sourceforge.net/project/showfiles.php.*,,"; \
-e "s,^\(.*\)/\(.*\)?.*,\1/\2," \
<<< $SPELL_SRC_URL)
@@ -32,6 +33,7 @@ if ! [[ $SPELL_SRC_URL ]] ||
SPELL_SRC_URL=$(sed -e
"s,http://prdownloads.sourceforge.net,$SOURCEFORGE_URL,"; \
-e
"s,http://downloads.sourceforge.net/\(.*\)?.*,$SOURCEFORGE_URL/\1," \
-e
"s,http://downloads.sourceforge.net/\(.*\),$SOURCEFORGE_URL/\1," \
+ -e
"s,http://prdownload.berlios.de/\(.*\),http://download.berlios.de/\1,"; \
-e
"s,http://sourceforge.net/project/showfiles.php.*,,"; \
-e "s,^\(.*\)/\(.*\)?.*,\1/\2," \
<<< $SPELL_SRC_URL)
@@ -227,6 +229,8 @@ $(fmt -u -w80 ${QUILL_TMP_DIR}/${SPELL_D
EOF" > DETAILS
rm ${QUILL_TMP_DIR}/${SPELL_DESC_NAME:-$SPELL_NAME}

+ clear_html_specials DETAILS
+
message "Done.\n"
}
#---
diff --git a/var/lib/quill/version b/var/lib/quill/version
index 2e55248..274702e 100644
--- a/var/lib/quill/version
+++ b/var/lib/quill/version
@@ -1 +1 @@
-0.2.4-rc1
+0.2.4-rc2



  • [SM-Commit] GIT changes to master quill by Andra?? Levstik (c88f41c568ef874c5f39b3a5ca28ff8ce0c929b5), Andra?? Levstik, 03/07/2007

Archive powered by MHonArc 2.6.24.

Top of Page