User Tools

Site Tools


judoshiai-en:lua-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
judoshiai-en:lua-en [2025/01/04 00:14] hjokinenjudoshiai-en:lua-en [2025/01/04 00:20] (current) – [SVG + Lua scripts] hjokinen
Line 59: Line 59:
 Again you will display text Hello World! File must be in one of the directories Again you will display text Hello World! File must be in one of the directories
 <code> <code>
-//HOMEDIR/lualib//\\ +HOMEDIR/lualib 
-///home/myname/lualib   (Linux)\\ +/home/myname/lualib   (Linux) 
-C:\Users\myname\lualib (Windows)//+C:\Users\myname\lualib (Windows)
  
-//HOMEDIR/lualib/lib//\\ +HOMEDIR/lualib/lib 
-  (for example ///home/myname/lualib/lib// or //C:\Users\myname\lualib\lib)//+  (for example /home/myname/lualib/lib or C:\Users\myname\lualib\lib)
  
-//JudoShiai/svg-lua//\\ +JudoShiai/svg-lua 
-  (for example ///usr/lib/judoshiai/svg-lua// or //C:\Program Files\JudoShiai\svg-lua)//+  (for example /usr/lib/judoshiai/svg-lua or C:\Program Files\JudoShiai\svg-lua)
  
-//JudoShiai/svg-lua/lib//\\ +JudoShiai/svg-lua/lib 
-  (for example ///usr/lib/judoshiai/svg-lua/lib// or\\ +  (for example /usr/lib/judoshiai/svg-lua/lib or 
-   //C:\Program Files\JudoShiai\svg-lua/lib)//+   C:\Program Files\JudoShiai\svg-lua/lib)
 </code> </code>
 You can have Lua file anywhere, but then you must give the whole path: You can have Lua file anywhere, but then you must give the whole path:
Line 374: Line 374:
 There are two ways to run Lua scripts: There are two ways to run Lua scripts:
  
-  * Embed code to SVG sheets. Lua code is embedded to text by using format\\ +  * Embed code to SVG sheets. Lua code is embedded to text by using format //%[lua_code_here]//
-//%[lua_code_here]//+
   * Run Lua file. There will be a default SVG file where all the printing goes. Note: The default file has no Inkscape specific definitions. When creating SVG files to include them save them as plain SVG.   * Run Lua file. There will be a default SVG file where all the printing goes. Note: The default file has no Inkscape specific definitions. When creating SVG files to include them save them as plain SVG.
  
judoshiai-en/lua-en.1735974872.txt.gz · Last modified: 2025/01/04 00:14 by hjokinen