mozdev.org

langwidge

resources:

Accessing/Structuring Files

If you download the file and change the extension from .xpi to .zip, you should be able to extract all the source files into something like this:

/chrome        
  /content      
    /langwidgeThrobber    
      about.xul  
      contents.rdf  
      helloworldOverlay.js  
      helloworldOverlay.xul  
  /skin      
    /classic    
      /langwidgeThrobber  
        contents.rdf
        langwidgeThrobber.png
        langwidgeThrobberB.png
  langwidgeThrobber.jar      
install.js        
install.rdf        

to make any changes, delete langwidgeThrobber.jar, recreate it by making langwidgeThrobber.zip with the content and skin directories, rename it langwidgeThrobber.jar (then change the whole thing back from .zip to .xpi).

Making Changes

If you open up "helloworldOverlay.xul" (yeah, yeah, I didn't even bother changing the file name ... this was supposed to just be a concept demo, I didn't expect to get slashdotted and have actual people using it) you'll find an area like this:

<textbox
id="langwidge_textbox"
flex='1'
width="350"
height='23'
style="text-align: center; vertical-align:middle; background: black; font-weight:bold;">
<!--
Cleaner way of using only XUL elements, but commented out since it doesn't support PHP and javascript can't load files from another host
<text value="Lone" style="color: #61A78F; font-size:26px; text-align: center;"/>
<text value=" - "/>
<text value="Ltwo" style="color: #9662B7; font-size:26px; text-align: center;"/>-->

<iframe id="langwidge_iframe" src="http://www.langwidge.com/lbmz/banner.php#vocab" width="350" height="45"/>
</textbox>

Here you can change all the values such as width and height as you wish. Currently the bar points to http://www.langwidge.com/lbmz/banner.php#vocab , which generates a very simple html file out of whatever .csv is provided (or asks for settings if it can't find a cookie). If you want to have custom images/design/whatever, just point that url to your own site and create a script that generates pages as you like in whatever language/characterset you like.

If someone makes a generic page that can process images/more complex .csv (or other format) inputs, let me know.

The langwidge project can be contacted through the mailing list or the member list.
Copyright © 2000-2017. All rights reserved. Terms of Use & Privacy Policy.