LISTSERV mailing list manager LISTSERV 16.0

Help for SW-L Archives


SW-L Archives

SW-L Archives


SW-L@LISTSERV.VALENCIACOLLEGE.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SW-L Home

SW-L Home

SW-L  July 2012

SW-L July 2012

Subject:

Re: Co-ordinating Puddle/s

From:

MARIA GALEA <[log in to unmask]>

Reply-To:

SignWriting List: Read and Write Sign Languages

Date:

Fri, 6 Jul 2012 23:51:16 +0200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (113 lines)

Thanks Bill for your help,
I'm not very technical minded so this sounds very complex and daunting! :)
I'll see if maybe Steve can step me through it. Mainly I want to create
copies of files in our private puddle and in our dictionary puddle for our
literature puddle. I want a complete literature puddle so that i can get
some sound statistical information from it regarding the frequency of
symbols for Maltese Sign language literature writing..
fingers crossed i don't blunder!
maria

> A fast way to do what Steve is suggesting for the ID numbers would be to
> do a search and replace in OpenOffice Writer.   Here's how:
>
> In the Find and Replace Window click on the "More Options" button then
> select the "Regular Expressions" box.
>
> Now, because the existing numbers are single, double and triple digits,
> we would need to do a find and replace for each set.
>
> Start with the set of the largest numbers - triple digits (ie, 122, 456,
> 786, etc)
>
> In the Find box, put this:  id="[:digit:]{3}"
> In the Replace box, put this:  id="1&
> Click on Replace All (for example: this will change id="122" to
> id="1id="122", an intermediate step
> Now do a search and replace for 1id=" and replace with 1 (this will
> change the example from id="1id="122"  to id="1122", which is what you
> want.
>
> You do it this way so that you are adding 1000 to all the numbers
> instead of just appending "100" to the numbers, which would result in
> "1002", "10044", "100122", which is not what you want.   Also we have to
> start with the largest so that we don't inadvertently find the wrong
> numbers as we process the file.  For instance, if we changed "2" to
> "12", then when we search for 2 digit numbers next we would find that
> and change it to "112", which is not what you want.
>
> So the next search and replace would be for 2 digit numbers.
> Search for  id="[:digit:]{2}" and Replace with id="1&
> Then search for 1id=" and Replace with 10  (notice this is different
> than the first set of numbers, for which we replaced with just 1)
> For example: this will change 44 to 1044
>
> The last search and replace would be for single digit numbers
> Search for  id="[:digit:]{1}" and Replace with id="1&
> Then search for 1id=" and Replace with 100
> For example: this will change 2 to 1002
>
> Of course, if you're not sure that you don't have more than 1000 entries
> in your file, you can start by searching for 4 digit numbers.  If you do
> find 4 digit numbers then you'll want to increase the numbers by 10000,
> not 1000 and take that into account when changing the intermediate step
> for each set of digits.
>
> Bill
>
>
> On 7/6/2012 11:18 AM, Steve Slevinski wrote:
>>
>> On 7/4/12 4:24 AM, MARIA GALEA wrote:
>>> Hi Steve and the List,
>>>
>>> For Maltese Sign Language we have 3 Puddles that have been used - the
>>> Literature, the Dictionary and the Private Puddle.
>>>
>>> I would like to organize the entries so I would like to move things to
>>> and
>>> from these different Puddles. Is there any way I can do this fast
>>> without
>>> having to open each separate entry and copying it into another Puddle
>>> and
>>> then deleting it..?
>>>
>>> Thanks!
>>> maria
>> Hi Maria,
>>
>> The best option I can think of would be to download and edit the XML
>> files directly.  If you downloaded each puddle's XML file, you could
>> use a text editor to quickly copy and paste entries between the XML
>> documents.
>>
>> The biggest problem would be that each entry in a puddle must have a
>> unique ID number.  If you copied entries from one puddle to another,
>> you would have to make sure the IDs were unique.  Looking at 2 of the
>> Malta puddles, it looks like all of the IDs are less that 1,000.  So
>> to copy an entry from one puddle to the other, the safest way would be
>> to add 1,000 to the ID numbers.
>>
>> Here is an example:
>> <entry id="2" cdt="1208941776" mdt="1208941776" usr="LSM">
>>   <term>M518x515S10e00482x485S17610502x499</term>
>>   <term><![CDATA[GHOXRIN]]></term>
>>   <term><![CDATA[TWENTY]]></term>
>> </entry>
>>
>> If you wanted to copy this from one puddle to another, you would cut
>> it from one XML file and paste it into the other XML making sure to
>> change the *id="2"* to be *id="1002"*.
>>
>> It's not the most elegant solution, but it could work.  If you want to
>> do this, I can work with you.  We would lock the target puddles so
>> that they could not be edited.  You would download and update the XML
>> files.  Then I could import the new XML files and overwrite the puddles.
>>
>> I can't think of an easier way to do this.
>>
>> Regards,
>> -Steve
>
>
>

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010

ATOM RSS1 RSS2



LISTSERV.VALENCIACOLLEGE.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager