Large

Google Books to Wikipedia citation

By Styles Last update Nov 2, 2010 — Installed 487 times.

Overview page only?

in
Subscribe to Overview page only? 3 posts, 2 voices



Shreevatsa R Scriptwright
FirefoxMacintosh

Hi,

Thanks for your comment at http://userscripts.org/scripts/show/44314 — I finally installed and tried out your script; It's great to see how much better it is than mine, and all the other useful scripts you've written! I have linked to it from the other page.

But is there a reason it works only from the overview page? (Or am I missing something?) It seems that it doesn't work when on some page (e.g. to use my old example, when at a URL like this) and one has to manually go to the overview page and enter both the page number and the highlight text, and even modify the URL to enter the page number. If this is intentional (e.g. you don't like linking to specific pages or highlighting text) and not just an oversight, then nevermind; I just wanted to be sure I wasn't missing something.

[Aside: I tried the script on this book and it seems to find the author's name as "Fran ois de Blois" instead of "François de Blois". A problem with non-ASCII characters, perhaps?]

Regards,

 
Styles Script's Author
FirefoxMacintosh

Thanks for the feedback. It does only work on the overview page (just added a note to the in-built help) as the book information needed only exists on that page. Picking up the page number was a bit buggy so I've dropped that for the moment. I agree with your point about non-ASCII characters in the author name. I did screen these out due to an issue I can't remember but I have included ç é è and could add more to the script. Your example now shows as {{citation | last=de Blois | first=François | year=1990 | title=Burzōy’s voyage to India and the origin of the book of Kalīlah wa Dimnah | publisher=Routledge | isbn=9780947593063 }}.

The URL is intended to be the most basic GBooks link, I have changed the default to no url as it seems a bit contentious to always include these by default to a particular search engine.

 
Shreevatsa R Scriptwright
ChromeMacintosh

Again, thanks for your script. I'm glad my script got turned into something more useful, and I still plan to take some of your code and make mine better. (Ideally I wish I could abandon my script and use yours directly, but see last paragraph below.) (BTW, it seems you changed the license from GPL to CC-BY-SA (is this normal?), so how does it work now? If I use your code do I have to change my license as well? Ideally, if you could license your code under both GPL and CC-BY-SA, I could do too, and it would be simpler.)

Interesting that your philosophy seems opposite to mine. :-) I'd prefer not to miss any information, as redundant information can always be removed when adding the citation (and even if not, it can always be removed easily later), but it seems you'd prefer to ignore something rather than introduce redundancy (e.g. editors names, the "additional lines" in a multi-line title or author, which are almost always useless but I'd like to retain just in case, etc).

What is the problem with non-ASCII characters, BTW? I have been adding a lot of books with Sanskrit titles, which therefore have many diacritic marks (â, ī, á, ā, ṇ, ḍ, ṣ, etc.) and your script simply skips most of these characters making it impractical to use. (See here, it also skips the other authors.) I'd also like to get all the relevant information, including page number and highlighted text in the URL, directly from a page itself without having to go to the overview page (as my script did from its very first version), but if you're not interested in this functionality I can understand; you probably don't need it for the way you normally add citations to Wikipedia.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel