Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-citeproc for openSUSE:Factory 
checked in at 2021-02-16 22:37:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-citeproc (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-citeproc.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-citeproc"

Tue Feb 16 22:37:09 2021 rev:8 rq:870449 version:0.3.0.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-citeproc/ghc-citeproc.changes        
2021-01-20 18:26:18.883454458 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-citeproc.new.28504/ghc-citeproc.changes     
2021-02-16 22:45:23.702338491 +0100
@@ -1,0 +2,28 @@
+Tue Feb  2 09:34:13 UTC 2021 - psim...@suse.com
+
+- Update citeproc to version 0.3.0.7.
+  ## 0.3.0.7
+
+    * Remove check for ASCII in case transform code.
+      Previously we weren't doing case transform on words
+      containing non-ASCII characters.
+
+-------------------------------------------------------------------
+Sun Jan 31 13:49:51 UTC 2021 - psim...@suse.com
+
+- Update citeproc to version 0.3.0.6.
+  ## 0.3.0.6
+
+    * Fix infinite loop in `fixPunct` (#49).  In a few rare cases
+      `fixPunct` would hang.
+
+-------------------------------------------------------------------
+Sun Jan 24 16:09:24 UTC 2021 - psim...@suse.com
+
+- Update citeproc to version 0.3.0.5.
+  ## 0.3.0.5
+
+    * Add a space between "no date" term and disambiguator
+      if the long form is used (#47).
+
+-------------------------------------------------------------------

Old:
----
  citeproc-0.3.0.4.tar.gz

New:
----
  citeproc-0.3.0.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-citeproc.spec ++++++
--- /var/tmp/diff_new_pack.ofKsao/_old  2021-02-16 22:45:24.294339270 +0100
+++ /var/tmp/diff_new_pack.ofKsao/_new  2021-02-16 22:45:24.298339275 +0100
@@ -19,7 +19,7 @@
 %global pkg_name citeproc
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.3.0.4
+Version:        0.3.0.7
 Release:        0
 Summary:        Generates citations and bibliography from CSL styles
 License:        BSD-2-Clause

++++++ citeproc-0.3.0.4.tar.gz -> citeproc-0.3.0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/CHANGELOG.md 
new/citeproc-0.3.0.7/CHANGELOG.md
--- old/citeproc-0.3.0.4/CHANGELOG.md   2021-01-15 23:06:33.000000000 +0100
+++ new/citeproc-0.3.0.7/CHANGELOG.md   2021-02-01 20:05:27.000000000 +0100
@@ -1,5 +1,21 @@
 # citeproc changelog
 
+## 0.3.0.7
+
+  * Remove check for ASCII in case transform code.
+    Previously we weren't doing case transform on words
+    containing non-ASCII characters.
+
+## 0.3.0.6
+
+  * Fix infinite loop in `fixPunct` (#49).  In a few rare cases
+    `fixPunct` would hang.
+
+## 0.3.0.5
+
+  * Add a space between "no date" term and disambiguator
+    if the long form is used (#47).
+
 ## 0.3.0.4
 
   * Improve disambiguation code.  Add type signatures,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/citeproc.cabal 
new/citeproc-0.3.0.7/citeproc.cabal
--- old/citeproc-0.3.0.4/citeproc.cabal 2021-01-15 23:01:18.000000000 +0100
+++ new/citeproc-0.3.0.7/citeproc.cabal 2021-02-01 20:05:33.000000000 +0100
@@ -1,6 +1,6 @@
 cabal-version:       2.2
 name:                citeproc
-version:             0.3.0.4
+version:             0.3.0.7
 synopsis:            Generates citations and bibliography from CSL styles.
 description:         citeproc parses CSL style files and uses them to
                      generate a list of formatted citations and bibliography
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/man/citeproc.1 
new/citeproc-0.3.0.7/man/citeproc.1
--- old/citeproc-0.3.0.4/man/citeproc.1 2021-01-15 23:06:49.000000000 +0100
+++ new/citeproc-0.3.0.7/man/citeproc.1 2021-02-01 20:05:40.000000000 +0100
@@ -1,6 +1,6 @@
 .\" Automatically generated by Pandoc 2.11.4
 .\"
-.TH "citeproc" "1" "" "citeproc 0.3.0.4" ""
+.TH "citeproc" "1" "" "citeproc 0.3.0.7" ""
 .hy
 .SH NAME
 .PP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/src/Citeproc/CaseTransform.hs 
new/citeproc-0.3.0.7/src/Citeproc/CaseTransform.hs
--- old/citeproc-0.3.0.4/src/Citeproc/CaseTransform.hs  2020-12-09 
06:12:12.000000000 +0100
+++ new/citeproc-0.3.0.7/src/Citeproc/CaseTransform.hs  2021-02-01 
19:17:16.000000000 +0100
@@ -17,7 +17,7 @@
 where
 
 import Data.Ord ()
-import Data.Char (isUpper, isLower, isAscii)
+import Data.Char (isUpper, isLower)
 import Data.Text (Text)
 import qualified Data.Text as T
 import Citeproc.Types (Lang(..))
@@ -94,7 +94,6 @@
      | isMixedCase chunk = chunk
      | T.all isUpper chunk = chunk  -- spec doesn't say this but tests do
                                     -- textcase_TitleCapitalization.txt
-     | T.any (not . isAscii) chunk = chunk
      | st == StartSentence || st == Start =
        capitalizeText mblang $ Unicode.toLower mblang chunk
      | st == AfterWordEnd
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/src/Citeproc/CslJson.hs 
new/citeproc-0.3.0.7/src/Citeproc/CslJson.hs
--- old/citeproc-0.3.0.4/src/Citeproc/CslJson.hs        2020-12-28 
19:27:47.000000000 +0100
+++ new/citeproc-0.3.0.7/src/Citeproc/CslJson.hs        2021-02-01 
19:26:30.000000000 +0100
@@ -545,11 +545,7 @@
   hasWordBreak = any (T.any isWordBreak)
   splitUp = T.groupBy sameType
   sameType c d =
-    -- note that non-English characters get treated differently
-    -- by titlecase transformation
-    (isAscii c && isAlphaNum c && isAscii d && isAlphaNum d) ||
-    (not (isAscii c) && isAlphaNum c && not (isAscii d) && isAlphaNum d) ||
-    (isSpace c && isSpace d)
+    (isAlphaNum c && isAlphaNum d) || (isSpace c && isSpace d)
 
 caseTransform :: Maybe Lang
               -> CaseTransformer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/src/Citeproc/Eval.hs 
new/citeproc-0.3.0.7/src/Citeproc/Eval.hs
--- old/citeproc-0.3.0.4/src/Citeproc/Eval.hs   2021-01-15 20:39:42.000000000 
+0100
+++ new/citeproc-0.3.0.7/src/Citeproc/Eval.hs   2021-01-22 18:50:16.000000000 
+0100
@@ -1475,7 +1475,10 @@
               mbsuff <- getYearSuffix
               case mbsuff of
                 Nothing  -> return t'
-                Just suff -> return $ grouped [t', suff]
+                Just suff
+                  | termForm term == Long
+                    -> return $ grouped [t', Literal (fromText " "), suff]
+                  | otherwise -> return $ grouped [t', suff]
             else return t'
   return $ Tagged TagTerm t''
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/src/Citeproc/Pandoc.hs 
new/citeproc-0.3.0.7/src/Citeproc/Pandoc.hs
--- old/citeproc-0.3.0.4/src/Citeproc/Pandoc.hs 2020-11-18 20:22:42.000000000 
+0100
+++ new/citeproc-0.3.0.7/src/Citeproc/Pandoc.hs 2021-02-01 19:26:38.000000000 
+0100
@@ -18,7 +18,7 @@
 import Control.Monad.Trans.State.Strict as S
 import Control.Monad (unless, when)
 import Data.Functor.Reverse
-import Data.Char (isSpace, isAscii, isPunctuation, isAlphaNum)
+import Data.Char (isSpace, isPunctuation, isAlphaNum)
 
 instance CiteprocOutput Inlines where
   toText                = stringify
@@ -280,8 +280,4 @@
   hasWordBreak = T.any isWordBreak
   splitUp = T.groupBy sameType
   sameType c d =
-    -- note that non-English characters get treated differently
-    -- by titlecase transformation
-    (isAscii c && isAlphaNum c && isAscii d && isAlphaNum d) ||
-    (not (isAscii c) && isAlphaNum c && not (isAscii d) && isAlphaNum d) ||
-    (isSpace c && isSpace d)
+    (isAlphaNum c && isAlphaNum d) || (isSpace c && isSpace d)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/citeproc-0.3.0.4/src/Citeproc/Types.hs 
new/citeproc-0.3.0.7/src/Citeproc/Types.hs
--- old/citeproc-0.3.0.4/src/Citeproc/Types.hs  2020-12-28 19:27:47.000000000 
+0100
+++ new/citeproc-0.3.0.7/src/Citeproc/Types.hs  2021-01-30 21:22:07.000000000 
+0100
@@ -1568,8 +1568,14 @@
   yText = toText y
   xEnd = if T.null xText then '\xFFFD' else T.last xText
   yStart = if T.null yText then '\xFFFD' else T.head yText
-  keepFirst = fixPunct $ x : (dropTextWhile (== yStart) y : zs)
-  keepSecond = fixPunct $ dropTextWhileEnd (== xEnd) x : y : zs
+  xTrimmed = dropTextWhileEnd (== xEnd) x
+  yTrimmed = dropTextWhile (== yStart) y
+  keepFirst = if yTrimmed == y -- see #49
+                 then x : fixPunct (y : zs)
+                 else fixPunct $ x : yTrimmed : zs
+  keepSecond = if xTrimmed == x -- see #49
+                  then x : fixPunct (y : zs)
+                  else fixPunct (xTrimmed : y : zs)
   keepBoth = x : fixPunct (y : zs)
 fixPunct zs = zs
 

Reply via email to