removing quotation marks from old import

Any trouble you encounter with the Pedias, here's the place to ask for help.

removing quotation marks from old import

Postby teacher24_70 » Mon Jul 30, 2007 8:12 am

At one point, when I first started using Bookpedia, I imported a tab-delimited file from Word. When it imported the authors, it placed the author names in quotation marks. So, when I sort by author, all of the quotation marked authors are listed first.

Is there a quick, easy way to remove these quotation marks or will I need to do them manually one at a time?
User avatar
teacher24_70
Addicted to Bruji
Addicted to Bruji
 
Posts: 91
Joined: Sun Nov 21, 2004 12:51 am
Location: Kansas

Postby Conor » Mon Jul 30, 2007 12:41 pm

I wouldn't say easy, but there is a way (possibly two). :)

Without Bookpedia running, make a backup copy of the info.xml file located in the data folder (~/Library/Application Support/Bookpedia) and then open the original info.xml file in a text editor that can handle regular expressions such as TextWrangler with "Use Grep" checked in the find panel.

Look for:
Code: Select all
<key>Author</key>\r\t\t\t<string>"(.*)"</string>


replace with:
Code: Select all
<key>Author</key>\r\t\t\t<string>\1</string>
User avatar
Conor
Top Dog
 
Posts: 5214
Joined: Sat Jul 03, 2004 12:58 pm


Return to Support