Restricting Transform Filters to Run in Single Pass?

Daniel Yacob yacob at geez.org
Fri Dec 31 10:57:48 CST 2021


Greetings,

I've noticed a different behavior in a simple transform when it runs in
isolation vs when it runs as a filter from *another* transform.  To
investigate, I removed all rules from the 2nd transform until *only* the
filter remained.  What I see in filter mode is that the output from the
filter appears to be reevaluated until no further changes occur.

To illustrate, my simple filter would have rules like:

ABC > abc ;
abc > xyz ;

Then the difference in output appears like:

*As a Stand-Alone Transform:*
  IN:    ABC
OUT:  abc

*As a Filter:  *
  IN:    ABC
OUT:  xyz

But it's not always consistent, sometimes the "as a filter" case will
produce the identical output as the stand-alone case.  There seems to be a
sensitivity to the number of test cases in my input file, but again not
always.  Is there rule syntax available that could restrict the filter to
being evaluated only once?  I can file a bug report if the behavior is
unexpected.

thanks!

-Daniel

PS:  Maybe, maybe not related, in the same sessions I might see warnings
like the following which have something to do with caching and Apache Derby.

Dec 31, 2021 11:22:34 AM org.unicode.cldr.rdf.AbstractCache load
WARNING: Could not read files in
/var/folders/db/dbp4pwdd60z477q4y4pv8thc0000gn/T/1640967754872-0
Dec 31, 2021 11:22:34 AM org.unicode.cldr.rdf.AbstractCache load
WARNING: Could not read files in
/var/folders/db/dbp4pwdd60z477q4y4pv8thc0000gn/T/1640967754872-0
Dec 31, 2021 11:22:34 AM org.unicode.cldr.rdf.AbstractCache store
INFO: # AbstractCache wrote to
/var/folders/db/dbp4pwdd60z477q4y4pv8thc0000gn/T/1640967754872-0
org.unicode.cldr.unittest.web.testArgs=-n -q
org.unicode.cldr.unittest.web.jdbcurl=
Dec 31, 2021 8:22:51 AM org.unicode.cldr.web.DBUtils makeInstanceFrom
WARNING: DBUtils: Note: changing the DBUtils singleton instance to
org.apache.derby.jdbc.EmbeddedDataSource at 721eb7df @ null
Dec 31, 2021 8:22:51 AM org.unicode.cldr.web.DBUtils setupSqlForServerType
INFO: setting up SQL for database type Apache Derby v10.10.1.1 - (1458268)
Dec 31, 2021 8:22:51 AM org.unicode.cldr.web.DBUtils setupSqlForServerType
INFO: Note: Derby (embedded) mode. ** some features may not work as
expected **
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://corp.unicode.org/pipermail/cldr-users/attachments/20211231/0e977927/attachment.htm>


More information about the CLDR-Users mailing list