From a0d596bab9ad7f1001e2e2bdf8aa36d5f4e432ef Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Mon, 16 Jul 2018 10:26:26 +0200 Subject: Creation for boards mod --- boards/LICENSE.txt | 166 +++++++++++++++++++++++++++++++++ boards/LICENSE_FONT.txt | 4 + boards/copyright.txt | 2 + boards/depends.txt | 2 + boards/font_tinycurs.lua | 27 ++++++ boards/init.lua | 139 +++++++++++++++++++++++++++ boards/intllib.lua | 45 +++++++++ boards/locale/fr.po | 40 ++++++++ boards/locale/template.pot | 34 +++++++ boards/textures/board_black_front.png | Bin 0 -> 563 bytes boards/textures/board_green_front.png | Bin 0 -> 485 bytes boards/textures/font_tinycurs_0000.png | Bin 0 -> 248 bytes boards/textures/font_tinycurs_0020.png | Bin 0 -> 230 bytes boards/textures/font_tinycurs_0021.png | Bin 0 -> 305 bytes boards/textures/font_tinycurs_0022.png | Bin 0 -> 289 bytes boards/textures/font_tinycurs_0023.png | Bin 0 -> 304 bytes boards/textures/font_tinycurs_0024.png | Bin 0 -> 338 bytes boards/textures/font_tinycurs_0025.png | Bin 0 -> 303 bytes boards/textures/font_tinycurs_0026.png | Bin 0 -> 325 bytes boards/textures/font_tinycurs_0027.png | Bin 0 -> 291 bytes boards/textures/font_tinycurs_0028.png | Bin 0 -> 299 bytes boards/textures/font_tinycurs_0029.png | Bin 0 -> 298 bytes boards/textures/font_tinycurs_002a.png | Bin 0 -> 292 bytes boards/textures/font_tinycurs_002b.png | Bin 0 -> 298 bytes boards/textures/font_tinycurs_002c.png | Bin 0 -> 287 bytes boards/textures/font_tinycurs_002d.png | Bin 0 -> 286 bytes boards/textures/font_tinycurs_002e.png | Bin 0 -> 282 bytes boards/textures/font_tinycurs_002f.png | Bin 0 -> 305 bytes boards/textures/font_tinycurs_0030.png | Bin 0 -> 311 bytes boards/textures/font_tinycurs_0031.png | Bin 0 -> 309 bytes boards/textures/font_tinycurs_0032.png | Bin 0 -> 320 bytes boards/textures/font_tinycurs_0033.png | Bin 0 -> 314 bytes boards/textures/font_tinycurs_0034.png | Bin 0 -> 315 bytes boards/textures/font_tinycurs_0035.png | Bin 0 -> 322 bytes boards/textures/font_tinycurs_0036.png | Bin 0 -> 315 bytes boards/textures/font_tinycurs_0037.png | Bin 0 -> 311 bytes boards/textures/font_tinycurs_0038.png | Bin 0 -> 316 bytes boards/textures/font_tinycurs_0039.png | Bin 0 -> 320 bytes boards/textures/font_tinycurs_003a.png | Bin 0 -> 294 bytes boards/textures/font_tinycurs_003b.png | Bin 0 -> 296 bytes boards/textures/font_tinycurs_003c.png | Bin 0 -> 286 bytes boards/textures/font_tinycurs_003d.png | Bin 0 -> 292 bytes boards/textures/font_tinycurs_003e.png | Bin 0 -> 287 bytes boards/textures/font_tinycurs_003f.png | Bin 0 -> 309 bytes boards/textures/font_tinycurs_0040.png | Bin 0 -> 335 bytes boards/textures/font_tinycurs_0041.png | Bin 0 -> 314 bytes boards/textures/font_tinycurs_0042.png | Bin 0 -> 308 bytes boards/textures/font_tinycurs_0043.png | Bin 0 -> 312 bytes boards/textures/font_tinycurs_0044.png | Bin 0 -> 313 bytes boards/textures/font_tinycurs_0045.png | Bin 0 -> 303 bytes boards/textures/font_tinycurs_0046.png | Bin 0 -> 308 bytes boards/textures/font_tinycurs_0047.png | Bin 0 -> 168 bytes boards/textures/font_tinycurs_0048.png | Bin 0 -> 324 bytes boards/textures/font_tinycurs_0049.png | Bin 0 -> 308 bytes boards/textures/font_tinycurs_004a.png | Bin 0 -> 182 bytes boards/textures/font_tinycurs_004b.png | Bin 0 -> 305 bytes boards/textures/font_tinycurs_004c.png | Bin 0 -> 306 bytes boards/textures/font_tinycurs_004d.png | Bin 0 -> 318 bytes boards/textures/font_tinycurs_004e.png | Bin 0 -> 314 bytes boards/textures/font_tinycurs_004f.png | Bin 0 -> 311 bytes boards/textures/font_tinycurs_0050.png | Bin 0 -> 311 bytes boards/textures/font_tinycurs_0051.png | Bin 0 -> 313 bytes boards/textures/font_tinycurs_0052.png | Bin 0 -> 318 bytes boards/textures/font_tinycurs_0053.png | Bin 0 -> 315 bytes boards/textures/font_tinycurs_0054.png | Bin 0 -> 307 bytes boards/textures/font_tinycurs_0055.png | Bin 0 -> 311 bytes boards/textures/font_tinycurs_0056.png | Bin 0 -> 309 bytes boards/textures/font_tinycurs_0057.png | Bin 0 -> 315 bytes boards/textures/font_tinycurs_0058.png | Bin 0 -> 310 bytes boards/textures/font_tinycurs_0059.png | Bin 0 -> 329 bytes boards/textures/font_tinycurs_005a.png | Bin 0 -> 327 bytes boards/textures/font_tinycurs_005b.png | Bin 0 -> 315 bytes boards/textures/font_tinycurs_005c.png | Bin 0 -> 297 bytes boards/textures/font_tinycurs_005d.png | Bin 0 -> 316 bytes boards/textures/font_tinycurs_005e.png | Bin 0 -> 296 bytes boards/textures/font_tinycurs_005f.png | Bin 0 -> 286 bytes boards/textures/font_tinycurs_0060.png | Bin 0 -> 298 bytes boards/textures/font_tinycurs_0061.png | Bin 0 -> 296 bytes boards/textures/font_tinycurs_0062.png | Bin 0 -> 304 bytes boards/textures/font_tinycurs_0063.png | Bin 0 -> 299 bytes boards/textures/font_tinycurs_0064.png | Bin 0 -> 306 bytes boards/textures/font_tinycurs_0065.png | Bin 0 -> 301 bytes boards/textures/font_tinycurs_0066.png | Bin 0 -> 307 bytes boards/textures/font_tinycurs_0067.png | Bin 0 -> 304 bytes boards/textures/font_tinycurs_0068.png | Bin 0 -> 300 bytes boards/textures/font_tinycurs_0069.png | Bin 0 -> 290 bytes boards/textures/font_tinycurs_006a.png | Bin 0 -> 300 bytes boards/textures/font_tinycurs_006b.png | Bin 0 -> 305 bytes boards/textures/font_tinycurs_006c.png | Bin 0 -> 299 bytes boards/textures/font_tinycurs_006d.png | Bin 0 -> 305 bytes boards/textures/font_tinycurs_006e.png | Bin 0 -> 308 bytes boards/textures/font_tinycurs_006f.png | Bin 0 -> 295 bytes boards/textures/font_tinycurs_0070.png | Bin 0 -> 313 bytes boards/textures/font_tinycurs_0071.png | Bin 0 -> 307 bytes boards/textures/font_tinycurs_0072.png | Bin 0 -> 306 bytes boards/textures/font_tinycurs_0073.png | Bin 0 -> 302 bytes boards/textures/font_tinycurs_0074.png | Bin 0 -> 299 bytes boards/textures/font_tinycurs_0075.png | Bin 0 -> 296 bytes boards/textures/font_tinycurs_0076.png | Bin 0 -> 296 bytes boards/textures/font_tinycurs_0077.png | Bin 0 -> 308 bytes boards/textures/font_tinycurs_0078.png | Bin 0 -> 300 bytes boards/textures/font_tinycurs_0079.png | Bin 0 -> 308 bytes boards/textures/font_tinycurs_007a.png | Bin 0 -> 304 bytes boards/textures/font_tinycurs_007b.png | Bin 0 -> 312 bytes boards/textures/font_tinycurs_007c.png | Bin 0 -> 304 bytes boards/textures/font_tinycurs_007d.png | Bin 0 -> 314 bytes boards/textures/font_tinycurs_007e.png | Bin 0 -> 291 bytes boards/textures/font_tinycurs_2018.png | Bin 0 -> 288 bytes boards/textures/font_tinycurs_2019.png | Bin 0 -> 288 bytes boards/textures/font_tinycurs_201c.png | Bin 0 -> 294 bytes boards/textures/font_tinycurs_201d.png | Bin 0 -> 295 bytes boards/tools/updatepo.sh | 25 +++++ 112 files changed, 484 insertions(+) create mode 100644 boards/LICENSE.txt create mode 100644 boards/LICENSE_FONT.txt create mode 100644 boards/copyright.txt create mode 100644 boards/depends.txt create mode 100644 boards/font_tinycurs.lua create mode 100644 boards/init.lua create mode 100644 boards/intllib.lua create mode 100644 boards/locale/fr.po create mode 100644 boards/locale/template.pot create mode 100644 boards/textures/board_black_front.png create mode 100644 boards/textures/board_green_front.png create mode 100644 boards/textures/font_tinycurs_0000.png create mode 100644 boards/textures/font_tinycurs_0020.png create mode 100644 boards/textures/font_tinycurs_0021.png create mode 100644 boards/textures/font_tinycurs_0022.png create mode 100644 boards/textures/font_tinycurs_0023.png create mode 100644 boards/textures/font_tinycurs_0024.png create mode 100644 boards/textures/font_tinycurs_0025.png create mode 100644 boards/textures/font_tinycurs_0026.png create mode 100644 boards/textures/font_tinycurs_0027.png create mode 100644 boards/textures/font_tinycurs_0028.png create mode 100644 boards/textures/font_tinycurs_0029.png create mode 100644 boards/textures/font_tinycurs_002a.png create mode 100644 boards/textures/font_tinycurs_002b.png create mode 100644 boards/textures/font_tinycurs_002c.png create mode 100644 boards/textures/font_tinycurs_002d.png create mode 100644 boards/textures/font_tinycurs_002e.png create mode 100644 boards/textures/font_tinycurs_002f.png create mode 100644 boards/textures/font_tinycurs_0030.png create mode 100644 boards/textures/font_tinycurs_0031.png create mode 100644 boards/textures/font_tinycurs_0032.png create mode 100644 boards/textures/font_tinycurs_0033.png create mode 100644 boards/textures/font_tinycurs_0034.png create mode 100644 boards/textures/font_tinycurs_0035.png create mode 100644 boards/textures/font_tinycurs_0036.png create mode 100644 boards/textures/font_tinycurs_0037.png create mode 100644 boards/textures/font_tinycurs_0038.png create mode 100644 boards/textures/font_tinycurs_0039.png create mode 100644 boards/textures/font_tinycurs_003a.png create mode 100644 boards/textures/font_tinycurs_003b.png create mode 100644 boards/textures/font_tinycurs_003c.png create mode 100644 boards/textures/font_tinycurs_003d.png create mode 100644 boards/textures/font_tinycurs_003e.png create mode 100644 boards/textures/font_tinycurs_003f.png create mode 100644 boards/textures/font_tinycurs_0040.png create mode 100644 boards/textures/font_tinycurs_0041.png create mode 100644 boards/textures/font_tinycurs_0042.png create mode 100644 boards/textures/font_tinycurs_0043.png create mode 100644 boards/textures/font_tinycurs_0044.png create mode 100644 boards/textures/font_tinycurs_0045.png create mode 100644 boards/textures/font_tinycurs_0046.png create mode 100644 boards/textures/font_tinycurs_0047.png create mode 100644 boards/textures/font_tinycurs_0048.png create mode 100644 boards/textures/font_tinycurs_0049.png create mode 100644 boards/textures/font_tinycurs_004a.png create mode 100644 boards/textures/font_tinycurs_004b.png create mode 100644 boards/textures/font_tinycurs_004c.png create mode 100644 boards/textures/font_tinycurs_004d.png create mode 100644 boards/textures/font_tinycurs_004e.png create mode 100644 boards/textures/font_tinycurs_004f.png create mode 100644 boards/textures/font_tinycurs_0050.png create mode 100644 boards/textures/font_tinycurs_0051.png create mode 100644 boards/textures/font_tinycurs_0052.png create mode 100644 boards/textures/font_tinycurs_0053.png create mode 100644 boards/textures/font_tinycurs_0054.png create mode 100644 boards/textures/font_tinycurs_0055.png create mode 100644 boards/textures/font_tinycurs_0056.png create mode 100644 boards/textures/font_tinycurs_0057.png create mode 100644 boards/textures/font_tinycurs_0058.png create mode 100644 boards/textures/font_tinycurs_0059.png create mode 100644 boards/textures/font_tinycurs_005a.png create mode 100644 boards/textures/font_tinycurs_005b.png create mode 100644 boards/textures/font_tinycurs_005c.png create mode 100644 boards/textures/font_tinycurs_005d.png create mode 100644 boards/textures/font_tinycurs_005e.png create mode 100644 boards/textures/font_tinycurs_005f.png create mode 100644 boards/textures/font_tinycurs_0060.png create mode 100644 boards/textures/font_tinycurs_0061.png create mode 100644 boards/textures/font_tinycurs_0062.png create mode 100644 boards/textures/font_tinycurs_0063.png create mode 100644 boards/textures/font_tinycurs_0064.png create mode 100644 boards/textures/font_tinycurs_0065.png create mode 100644 boards/textures/font_tinycurs_0066.png create mode 100644 boards/textures/font_tinycurs_0067.png create mode 100644 boards/textures/font_tinycurs_0068.png create mode 100644 boards/textures/font_tinycurs_0069.png create mode 100644 boards/textures/font_tinycurs_006a.png create mode 100644 boards/textures/font_tinycurs_006b.png create mode 100644 boards/textures/font_tinycurs_006c.png create mode 100644 boards/textures/font_tinycurs_006d.png create mode 100644 boards/textures/font_tinycurs_006e.png create mode 100644 boards/textures/font_tinycurs_006f.png create mode 100644 boards/textures/font_tinycurs_0070.png create mode 100644 boards/textures/font_tinycurs_0071.png create mode 100644 boards/textures/font_tinycurs_0072.png create mode 100644 boards/textures/font_tinycurs_0073.png create mode 100644 boards/textures/font_tinycurs_0074.png create mode 100644 boards/textures/font_tinycurs_0075.png create mode 100644 boards/textures/font_tinycurs_0076.png create mode 100644 boards/textures/font_tinycurs_0077.png create mode 100644 boards/textures/font_tinycurs_0078.png create mode 100644 boards/textures/font_tinycurs_0079.png create mode 100644 boards/textures/font_tinycurs_007a.png create mode 100644 boards/textures/font_tinycurs_007b.png create mode 100644 boards/textures/font_tinycurs_007c.png create mode 100644 boards/textures/font_tinycurs_007d.png create mode 100644 boards/textures/font_tinycurs_007e.png create mode 100644 boards/textures/font_tinycurs_2018.png create mode 100644 boards/textures/font_tinycurs_2019.png create mode 100644 boards/textures/font_tinycurs_201c.png create mode 100644 boards/textures/font_tinycurs_201d.png create mode 100755 boards/tools/updatepo.sh (limited to 'boards') diff --git a/boards/LICENSE.txt b/boards/LICENSE.txt new file mode 100644 index 0000000..341c30b --- /dev/null +++ b/boards/LICENSE.txt @@ -0,0 +1,166 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. + diff --git a/boards/LICENSE_FONT.txt b/boards/LICENSE_FONT.txt new file mode 100644 index 0000000..29d0f9b --- /dev/null +++ b/boards/LICENSE_FONT.txt @@ -0,0 +1,4 @@ +The FontStruction “Tiny Cursive” +(https://fontstruct.com/fontstructions/show/63155) by “cyfry77” is licensed +under a Creative Commons Attribution Share Alike license +(http://creativecommons.org/licenses/by-sa/3.0/). diff --git a/boards/copyright.txt b/boards/copyright.txt new file mode 100644 index 0000000..ad83a10 --- /dev/null +++ b/boards/copyright.txt @@ -0,0 +1,2 @@ +Code by Pierre-Yves Rollo (pyrollo) +Font by (cyfry77) diff --git a/boards/depends.txt b/boards/depends.txt new file mode 100644 index 0000000..8c807e3 --- /dev/null +++ b/boards/depends.txt @@ -0,0 +1,2 @@ +default +signs_api diff --git a/boards/font_tinycurs.lua b/boards/font_tinycurs.lua new file mode 100644 index 0000000..a9a323a --- /dev/null +++ b/boards/font_tinycurs.lua @@ -0,0 +1,27 @@ +--[[ + Tinycurs font for Font API + + Original font Tiny Cursive + by cyfry77 + G and J textures by Pierre-Yves Rollo (pyrollo) + released under CC-BY-SA license + + https://fontstruct.com/fontstructions/show/63155/tiny_cursive + + Derivative texture are under CC-BY-SA license + Code is under LGPL v3 license +--]] + +font_api.register_font('tinycurs', + { + default = false, -- Don't register this font as a possible default font + margintop = -2, + marginbottom = -2, + linespacing = -4, + height = 19, + widths = { + [0]=9, [32]=9, [33]=6, [34]=7, [35]=10, [36]=14, [37]=14, [38]=12, [39]=3, [40]=6, [41]=6, [42]=9, [43]=8, [44]=3, [45]=7, [46]=3, [47]=9, [48]=9, [49]=7, [50]=10, [51]=9, [52]=9, [53]=10, [54]=10, [55]=9, [56]=10, [57]=8, [58]=5, [59]=5, [60]=8, [61]=8, [62]=8, [63]=8, [64]=12, [65]=9, [66]=7, [67]=9, [68]=10, [69]=8, [70]=8, [71]=8, [72]=10, [73]=7, [74]=8, [75]=9, [76]=9, [77]=12, [78]=10, [79]=9, [80]=9, [81]=9, [82]=11, [83]=11, [84]=8, [85]=11, [86]=11, [87]=12, [88]=12, [89]=11, [90]=11, [91]=8, [92]=5, [93]=8, [94]=8, [95]=8, [96]=5, [97]=6, [98]=6, [99]=6, [100]=7, [101]=6, [102]=5, [103]=6, [104]=6, [105]=4, [106]=5, [107]=7, [108]=5, [109]=9, [110]=8, [111]=6, [112]=9, [113]=8, [114]=7, [115]=7, [116]=6, [117]=8, [118]=8, [119]=11, [120]=10, [121]=8, [122]=8, [123]=8, [124]=6, [125]=9, [126]=10, [8216]=4, [8217]=4, [8220]=6, [8221]=6 + }, + } +); + diff --git a/boards/init.lua b/boards/init.lua new file mode 100644 index 0000000..4126a6c --- /dev/null +++ b/boards/init.lua @@ -0,0 +1,139 @@ +--[[ + boards mod for Minetest. Black boards with text on it. + (c) Pierre-Yves Rollo + + This file is part of boards. + + boards is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + boards is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with boards. If not, see . +--]] + +boards = {} +boards.name = minetest.get_current_modname() +boards.path = minetest.get_modpath(boards.name) + +-- Load support for intllib. +local S, NS = dofile(boards.path.."/intllib.lua") +boards.intllib = S +local F = function(...) return minetest.formspec_escape(S(...)) end + +-- Load font +dofile(boards.path.."/font_tinycurs.lua") + +local function set_formspec(pos) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", + "size[6,4]"..default.gui_bg..default.gui_bg_img..default.gui_slots.. + "textarea[0.5,0.7;5.5,3;display_text;"..F("Text")..";${display_text}]".. + "button_exit[3,3.5;2,1;ok;"..F("Write").."]".. + "button_exit[1,3.5;2,1;wipe;"..F("Wipe").."]") +end + +-- On boards, everyone is allowed to write and wipe +local function on_receive_fields(pos, formname, fields, player) + if fields then + if fields.ok or fields.key_enter then + signs_api.set_display_text(pos, fields.display_text, fields.font) + end + if fields.wipe then + signs_api.set_display_text(pos, "", fields.font) + end + end +end + +models = { + black_board = { + depth = 1/16, width = 1, height = 1, + entity_fields = { + top = -1/32, + size = { x = 1, y = 15/16 }, + maxlines = 5, + color = "#fff", + font_name = "tinycurs", + valign = "top", + }, + node_fields = { + description = S("Black board"), + tiles = { "default_wood.png", "default_wood.png", + "default_wood.png", "default_wood.png", + "default_wood.png", "board_black_front.png" }, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5}, + {-0.5, -7/16, 6/16, 0.5, -0.5, 7/16} + }, + }, + on_construct = function(pos) + set_formspec(pos) + display_api.on_construct(pos) + end, + on_receive_fields = on_receive_fields, + }, + }, + green_board = { + depth = 1/16, width = 1, height = 1, + entity_fields = { + top = -1/32, + size = { x = 1, y = 15/16 }, + maxlines = 5, + color = "#fff", + font_name = "tinycurs", + valign = "top", + }, + node_fields = { + description = S("Green board"), + tiles = { "default_wood.png", "default_wood.png", + "default_wood.png", "default_wood.png", + "default_wood.png", "board_green_front.png" }, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5}, + {-0.5, -7/16, 6/16, 0.5, -0.5, 7/16} + }, + }, + on_construct = function(pos) + set_formspec(pos) + display_api.on_construct(pos) + end, + on_receive_fields = on_receive_fields, + }, + }, +} + +-- Node registration +for name, model in pairs(models) +do + signs_api.register_sign("boards", name, model) +end + +-- Recipes +minetest.register_craft( + { + output = "boards:black_board", + recipe = { + {"group:wood", "group:stone", "dye:black"}, + } + }) + +minetest.register_craft( + { + output = "boards:green_board", + recipe = { + {"group:wood", "group:stone", "dye:dark_green"}, + } + }) + diff --git a/boards/intllib.lua b/boards/intllib.lua new file mode 100644 index 0000000..6669d72 --- /dev/null +++ b/boards/intllib.lua @@ -0,0 +1,45 @@ + +-- Fallback functions for when `intllib` is not installed. +-- Code released under Unlicense . + +-- Get the latest version of this file at: +-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua + +local function format(str, ...) + local args = { ... } + local function repl(escape, open, num, close) + if escape == "" then + local replacement = tostring(args[tonumber(num)]) + if open == "" then + replacement = replacement..close + end + return replacement + else + return "@"..open..num..close + end + end + return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl)) +end + +local gettext, ngettext +if minetest.get_modpath("intllib") then + if intllib.make_gettext_pair then + -- New method using gettext. + gettext, ngettext = intllib.make_gettext_pair() + else + -- Old method using text files. + gettext = intllib.Getter() + end +end + +-- Fill in missing functions. + +gettext = gettext or function(msgid, ...) + return format(msgid, ...) +end + +ngettext = ngettext or function(msgid, msgid_plural, n, ...) + return format(n==1 and msgid or msgid_plural, ...) +end + +return gettext, ngettext diff --git a/boards/locale/fr.po b/boards/locale/fr.po new file mode 100644 index 0000000..1b081be --- /dev/null +++ b/boards/locale/fr.po @@ -0,0 +1,40 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-16 10:00+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: init.lua +msgid "Text" +msgstr "Texte" + +#: init.lua +msgid "Write" +msgstr "Ecrire" + +#: init.lua +msgid "Wipe" +msgstr "Effacer" + +#: init.lua +msgid "Black board" +msgstr "Tableau noir" + +#: init.lua +msgid "Green board" +msgstr "Tableau vert" + + diff --git a/boards/locale/template.pot b/boards/locale/template.pot new file mode 100644 index 0000000..8db98b8 --- /dev/null +++ b/boards/locale/template.pot @@ -0,0 +1,34 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-16 10:00+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: init.lua +msgid "Text" +msgstr "" + +#: init.lua +msgid "Write" +msgstr "" + +#: init.lua +msgid "Wipe" +msgstr "" + +#: init.lua +msgid "Black board" +msgstr "" diff --git a/boards/textures/board_black_front.png b/boards/textures/board_black_front.png new file mode 100644 index 0000000..bddf4b6 Binary files /dev/null and b/boards/textures/board_black_front.png differ diff --git a/boards/textures/board_green_front.png b/boards/textures/board_green_front.png new file mode 100644 index 0000000..57e613f Binary files /dev/null and b/boards/textures/board_green_front.png differ diff --git a/boards/textures/font_tinycurs_0000.png b/boards/textures/font_tinycurs_0000.png new file mode 100644 index 0000000..5e32523 Binary files /dev/null and b/boards/textures/font_tinycurs_0000.png differ diff --git a/boards/textures/font_tinycurs_0020.png b/boards/textures/font_tinycurs_0020.png new file mode 100644 index 0000000..4d55fc2 Binary files /dev/null and b/boards/textures/font_tinycurs_0020.png differ diff --git a/boards/textures/font_tinycurs_0021.png b/boards/textures/font_tinycurs_0021.png new file mode 100644 index 0000000..2341270 Binary files /dev/null and b/boards/textures/font_tinycurs_0021.png differ diff --git a/boards/textures/font_tinycurs_0022.png b/boards/textures/font_tinycurs_0022.png new file mode 100644 index 0000000..711fc0a Binary files /dev/null and b/boards/textures/font_tinycurs_0022.png differ diff --git a/boards/textures/font_tinycurs_0023.png b/boards/textures/font_tinycurs_0023.png new file mode 100644 index 0000000..eb7fe6d Binary files /dev/null and b/boards/textures/font_tinycurs_0023.png differ diff --git a/boards/textures/font_tinycurs_0024.png b/boards/textures/font_tinycurs_0024.png new file mode 100644 index 0000000..21faedc Binary files /dev/null and b/boards/textures/font_tinycurs_0024.png differ diff --git a/boards/textures/font_tinycurs_0025.png b/boards/textures/font_tinycurs_0025.png new file mode 100644 index 0000000..d13b136 Binary files /dev/null and b/boards/textures/font_tinycurs_0025.png differ diff --git a/boards/textures/font_tinycurs_0026.png b/boards/textures/font_tinycurs_0026.png new file mode 100644 index 0000000..0217d08 Binary files /dev/null and b/boards/textures/font_tinycurs_0026.png differ diff --git a/boards/textures/font_tinycurs_0027.png b/boards/textures/font_tinycurs_0027.png new file mode 100644 index 0000000..3358a85 Binary files /dev/null and b/boards/textures/font_tinycurs_0027.png differ diff --git a/boards/textures/font_tinycurs_0028.png b/boards/textures/font_tinycurs_0028.png new file mode 100644 index 0000000..4867aca Binary files /dev/null and b/boards/textures/font_tinycurs_0028.png differ diff --git a/boards/textures/font_tinycurs_0029.png b/boards/textures/font_tinycurs_0029.png new file mode 100644 index 0000000..6233ad6 Binary files /dev/null and b/boards/textures/font_tinycurs_0029.png differ diff --git a/boards/textures/font_tinycurs_002a.png b/boards/textures/font_tinycurs_002a.png new file mode 100644 index 0000000..95ecb14 Binary files /dev/null and b/boards/textures/font_tinycurs_002a.png differ diff --git a/boards/textures/font_tinycurs_002b.png b/boards/textures/font_tinycurs_002b.png new file mode 100644 index 0000000..8c92a50 Binary files /dev/null and b/boards/textures/font_tinycurs_002b.png differ diff --git a/boards/textures/font_tinycurs_002c.png b/boards/textures/font_tinycurs_002c.png new file mode 100644 index 0000000..7457341 Binary files /dev/null and b/boards/textures/font_tinycurs_002c.png differ diff --git a/boards/textures/font_tinycurs_002d.png b/boards/textures/font_tinycurs_002d.png new file mode 100644 index 0000000..f0edd03 Binary files /dev/null and b/boards/textures/font_tinycurs_002d.png differ diff --git a/boards/textures/font_tinycurs_002e.png b/boards/textures/font_tinycurs_002e.png new file mode 100644 index 0000000..6425d1f Binary files /dev/null and b/boards/textures/font_tinycurs_002e.png differ diff --git a/boards/textures/font_tinycurs_002f.png b/boards/textures/font_tinycurs_002f.png new file mode 100644 index 0000000..2cf9cfb Binary files /dev/null and b/boards/textures/font_tinycurs_002f.png differ diff --git a/boards/textures/font_tinycurs_0030.png b/boards/textures/font_tinycurs_0030.png new file mode 100644 index 0000000..0c52286 Binary files /dev/null and b/boards/textures/font_tinycurs_0030.png differ diff --git a/boards/textures/font_tinycurs_0031.png b/boards/textures/font_tinycurs_0031.png new file mode 100644 index 0000000..3da16d1 Binary files /dev/null and b/boards/textures/font_tinycurs_0031.png differ diff --git a/boards/textures/font_tinycurs_0032.png b/boards/textures/font_tinycurs_0032.png new file mode 100644 index 0000000..6e647a5 Binary files /dev/null and b/boards/textures/font_tinycurs_0032.png differ diff --git a/boards/textures/font_tinycurs_0033.png b/boards/textures/font_tinycurs_0033.png new file mode 100644 index 0000000..9322594 Binary files /dev/null and b/boards/textures/font_tinycurs_0033.png differ diff --git a/boards/textures/font_tinycurs_0034.png b/boards/textures/font_tinycurs_0034.png new file mode 100644 index 0000000..15f4462 Binary files /dev/null and b/boards/textures/font_tinycurs_0034.png differ diff --git a/boards/textures/font_tinycurs_0035.png b/boards/textures/font_tinycurs_0035.png new file mode 100644 index 0000000..b37d085 Binary files /dev/null and b/boards/textures/font_tinycurs_0035.png differ diff --git a/boards/textures/font_tinycurs_0036.png b/boards/textures/font_tinycurs_0036.png new file mode 100644 index 0000000..51d11a2 Binary files /dev/null and b/boards/textures/font_tinycurs_0036.png differ diff --git a/boards/textures/font_tinycurs_0037.png b/boards/textures/font_tinycurs_0037.png new file mode 100644 index 0000000..d46de6c Binary files /dev/null and b/boards/textures/font_tinycurs_0037.png differ diff --git a/boards/textures/font_tinycurs_0038.png b/boards/textures/font_tinycurs_0038.png new file mode 100644 index 0000000..43126d1 Binary files /dev/null and b/boards/textures/font_tinycurs_0038.png differ diff --git a/boards/textures/font_tinycurs_0039.png b/boards/textures/font_tinycurs_0039.png new file mode 100644 index 0000000..a5ad51e Binary files /dev/null and b/boards/textures/font_tinycurs_0039.png differ diff --git a/boards/textures/font_tinycurs_003a.png b/boards/textures/font_tinycurs_003a.png new file mode 100644 index 0000000..f0ae56f Binary files /dev/null and b/boards/textures/font_tinycurs_003a.png differ diff --git a/boards/textures/font_tinycurs_003b.png b/boards/textures/font_tinycurs_003b.png new file mode 100644 index 0000000..08c8b44 Binary files /dev/null and b/boards/textures/font_tinycurs_003b.png differ diff --git a/boards/textures/font_tinycurs_003c.png b/boards/textures/font_tinycurs_003c.png new file mode 100644 index 0000000..2c5ddc9 Binary files /dev/null and b/boards/textures/font_tinycurs_003c.png differ diff --git a/boards/textures/font_tinycurs_003d.png b/boards/textures/font_tinycurs_003d.png new file mode 100644 index 0000000..a80eeee Binary files /dev/null and b/boards/textures/font_tinycurs_003d.png differ diff --git a/boards/textures/font_tinycurs_003e.png b/boards/textures/font_tinycurs_003e.png new file mode 100644 index 0000000..0cee6d5 Binary files /dev/null and b/boards/textures/font_tinycurs_003e.png differ diff --git a/boards/textures/font_tinycurs_003f.png b/boards/textures/font_tinycurs_003f.png new file mode 100644 index 0000000..928a174 Binary files /dev/null and b/boards/textures/font_tinycurs_003f.png differ diff --git a/boards/textures/font_tinycurs_0040.png b/boards/textures/font_tinycurs_0040.png new file mode 100644 index 0000000..e19e0cd Binary files /dev/null and b/boards/textures/font_tinycurs_0040.png differ diff --git a/boards/textures/font_tinycurs_0041.png b/boards/textures/font_tinycurs_0041.png new file mode 100644 index 0000000..d6505e1 Binary files /dev/null and b/boards/textures/font_tinycurs_0041.png differ diff --git a/boards/textures/font_tinycurs_0042.png b/boards/textures/font_tinycurs_0042.png new file mode 100644 index 0000000..af72583 Binary files /dev/null and b/boards/textures/font_tinycurs_0042.png differ diff --git a/boards/textures/font_tinycurs_0043.png b/boards/textures/font_tinycurs_0043.png new file mode 100644 index 0000000..ac8bfce Binary files /dev/null and b/boards/textures/font_tinycurs_0043.png differ diff --git a/boards/textures/font_tinycurs_0044.png b/boards/textures/font_tinycurs_0044.png new file mode 100644 index 0000000..25ead38 Binary files /dev/null and b/boards/textures/font_tinycurs_0044.png differ diff --git a/boards/textures/font_tinycurs_0045.png b/boards/textures/font_tinycurs_0045.png new file mode 100644 index 0000000..7ed7872 Binary files /dev/null and b/boards/textures/font_tinycurs_0045.png differ diff --git a/boards/textures/font_tinycurs_0046.png b/boards/textures/font_tinycurs_0046.png new file mode 100644 index 0000000..a48a33e Binary files /dev/null and b/boards/textures/font_tinycurs_0046.png differ diff --git a/boards/textures/font_tinycurs_0047.png b/boards/textures/font_tinycurs_0047.png new file mode 100644 index 0000000..17fe5aa Binary files /dev/null and b/boards/textures/font_tinycurs_0047.png differ diff --git a/boards/textures/font_tinycurs_0048.png b/boards/textures/font_tinycurs_0048.png new file mode 100644 index 0000000..7466bb7 Binary files /dev/null and b/boards/textures/font_tinycurs_0048.png differ diff --git a/boards/textures/font_tinycurs_0049.png b/boards/textures/font_tinycurs_0049.png new file mode 100644 index 0000000..660d34e Binary files /dev/null and b/boards/textures/font_tinycurs_0049.png differ diff --git a/boards/textures/font_tinycurs_004a.png b/boards/textures/font_tinycurs_004a.png new file mode 100644 index 0000000..9c4eb48 Binary files /dev/null and b/boards/textures/font_tinycurs_004a.png differ diff --git a/boards/textures/font_tinycurs_004b.png b/boards/textures/font_tinycurs_004b.png new file mode 100644 index 0000000..5554ef9 Binary files /dev/null and b/boards/textures/font_tinycurs_004b.png differ diff --git a/boards/textures/font_tinycurs_004c.png b/boards/textures/font_tinycurs_004c.png new file mode 100644 index 0000000..aaa7563 Binary files /dev/null and b/boards/textures/font_tinycurs_004c.png differ diff --git a/boards/textures/font_tinycurs_004d.png b/boards/textures/font_tinycurs_004d.png new file mode 100644 index 0000000..72cd174 Binary files /dev/null and b/boards/textures/font_tinycurs_004d.png differ diff --git a/boards/textures/font_tinycurs_004e.png b/boards/textures/font_tinycurs_004e.png new file mode 100644 index 0000000..177fdf3 Binary files /dev/null and b/boards/textures/font_tinycurs_004e.png differ diff --git a/boards/textures/font_tinycurs_004f.png b/boards/textures/font_tinycurs_004f.png new file mode 100644 index 0000000..2b76002 Binary files /dev/null and b/boards/textures/font_tinycurs_004f.png differ diff --git a/boards/textures/font_tinycurs_0050.png b/boards/textures/font_tinycurs_0050.png new file mode 100644 index 0000000..4ac9be8 Binary files /dev/null and b/boards/textures/font_tinycurs_0050.png differ diff --git a/boards/textures/font_tinycurs_0051.png b/boards/textures/font_tinycurs_0051.png new file mode 100644 index 0000000..c900456 Binary files /dev/null and b/boards/textures/font_tinycurs_0051.png differ diff --git a/boards/textures/font_tinycurs_0052.png b/boards/textures/font_tinycurs_0052.png new file mode 100644 index 0000000..ab5c241 Binary files /dev/null and b/boards/textures/font_tinycurs_0052.png differ diff --git a/boards/textures/font_tinycurs_0053.png b/boards/textures/font_tinycurs_0053.png new file mode 100644 index 0000000..c627af9 Binary files /dev/null and b/boards/textures/font_tinycurs_0053.png differ diff --git a/boards/textures/font_tinycurs_0054.png b/boards/textures/font_tinycurs_0054.png new file mode 100644 index 0000000..e9a155d Binary files /dev/null and b/boards/textures/font_tinycurs_0054.png differ diff --git a/boards/textures/font_tinycurs_0055.png b/boards/textures/font_tinycurs_0055.png new file mode 100644 index 0000000..bd74959 Binary files /dev/null and b/boards/textures/font_tinycurs_0055.png differ diff --git a/boards/textures/font_tinycurs_0056.png b/boards/textures/font_tinycurs_0056.png new file mode 100644 index 0000000..4446da3 Binary files /dev/null and b/boards/textures/font_tinycurs_0056.png differ diff --git a/boards/textures/font_tinycurs_0057.png b/boards/textures/font_tinycurs_0057.png new file mode 100644 index 0000000..d0fee31 Binary files /dev/null and b/boards/textures/font_tinycurs_0057.png differ diff --git a/boards/textures/font_tinycurs_0058.png b/boards/textures/font_tinycurs_0058.png new file mode 100644 index 0000000..84640b9 Binary files /dev/null and b/boards/textures/font_tinycurs_0058.png differ diff --git a/boards/textures/font_tinycurs_0059.png b/boards/textures/font_tinycurs_0059.png new file mode 100644 index 0000000..9053dd9 Binary files /dev/null and b/boards/textures/font_tinycurs_0059.png differ diff --git a/boards/textures/font_tinycurs_005a.png b/boards/textures/font_tinycurs_005a.png new file mode 100644 index 0000000..a69dde0 Binary files /dev/null and b/boards/textures/font_tinycurs_005a.png differ diff --git a/boards/textures/font_tinycurs_005b.png b/boards/textures/font_tinycurs_005b.png new file mode 100644 index 0000000..7e6a3f2 Binary files /dev/null and b/boards/textures/font_tinycurs_005b.png differ diff --git a/boards/textures/font_tinycurs_005c.png b/boards/textures/font_tinycurs_005c.png new file mode 100644 index 0000000..fd2df37 Binary files /dev/null and b/boards/textures/font_tinycurs_005c.png differ diff --git a/boards/textures/font_tinycurs_005d.png b/boards/textures/font_tinycurs_005d.png new file mode 100644 index 0000000..e3064d9 Binary files /dev/null and b/boards/textures/font_tinycurs_005d.png differ diff --git a/boards/textures/font_tinycurs_005e.png b/boards/textures/font_tinycurs_005e.png new file mode 100644 index 0000000..55055f9 Binary files /dev/null and b/boards/textures/font_tinycurs_005e.png differ diff --git a/boards/textures/font_tinycurs_005f.png b/boards/textures/font_tinycurs_005f.png new file mode 100644 index 0000000..367468a Binary files /dev/null and b/boards/textures/font_tinycurs_005f.png differ diff --git a/boards/textures/font_tinycurs_0060.png b/boards/textures/font_tinycurs_0060.png new file mode 100644 index 0000000..4170f49 Binary files /dev/null and b/boards/textures/font_tinycurs_0060.png differ diff --git a/boards/textures/font_tinycurs_0061.png b/boards/textures/font_tinycurs_0061.png new file mode 100644 index 0000000..b545504 Binary files /dev/null and b/boards/textures/font_tinycurs_0061.png differ diff --git a/boards/textures/font_tinycurs_0062.png b/boards/textures/font_tinycurs_0062.png new file mode 100644 index 0000000..daf3e81 Binary files /dev/null and b/boards/textures/font_tinycurs_0062.png differ diff --git a/boards/textures/font_tinycurs_0063.png b/boards/textures/font_tinycurs_0063.png new file mode 100644 index 0000000..dee911e Binary files /dev/null and b/boards/textures/font_tinycurs_0063.png differ diff --git a/boards/textures/font_tinycurs_0064.png b/boards/textures/font_tinycurs_0064.png new file mode 100644 index 0000000..1f4a51e Binary files /dev/null and b/boards/textures/font_tinycurs_0064.png differ diff --git a/boards/textures/font_tinycurs_0065.png b/boards/textures/font_tinycurs_0065.png new file mode 100644 index 0000000..002357f Binary files /dev/null and b/boards/textures/font_tinycurs_0065.png differ diff --git a/boards/textures/font_tinycurs_0066.png b/boards/textures/font_tinycurs_0066.png new file mode 100644 index 0000000..23eeae9 Binary files /dev/null and b/boards/textures/font_tinycurs_0066.png differ diff --git a/boards/textures/font_tinycurs_0067.png b/boards/textures/font_tinycurs_0067.png new file mode 100644 index 0000000..c557d04 Binary files /dev/null and b/boards/textures/font_tinycurs_0067.png differ diff --git a/boards/textures/font_tinycurs_0068.png b/boards/textures/font_tinycurs_0068.png new file mode 100644 index 0000000..5175ead Binary files /dev/null and b/boards/textures/font_tinycurs_0068.png differ diff --git a/boards/textures/font_tinycurs_0069.png b/boards/textures/font_tinycurs_0069.png new file mode 100644 index 0000000..db6433d Binary files /dev/null and b/boards/textures/font_tinycurs_0069.png differ diff --git a/boards/textures/font_tinycurs_006a.png b/boards/textures/font_tinycurs_006a.png new file mode 100644 index 0000000..96da601 Binary files /dev/null and b/boards/textures/font_tinycurs_006a.png differ diff --git a/boards/textures/font_tinycurs_006b.png b/boards/textures/font_tinycurs_006b.png new file mode 100644 index 0000000..f1e2be7 Binary files /dev/null and b/boards/textures/font_tinycurs_006b.png differ diff --git a/boards/textures/font_tinycurs_006c.png b/boards/textures/font_tinycurs_006c.png new file mode 100644 index 0000000..8cfd016 Binary files /dev/null and b/boards/textures/font_tinycurs_006c.png differ diff --git a/boards/textures/font_tinycurs_006d.png b/boards/textures/font_tinycurs_006d.png new file mode 100644 index 0000000..95ead88 Binary files /dev/null and b/boards/textures/font_tinycurs_006d.png differ diff --git a/boards/textures/font_tinycurs_006e.png b/boards/textures/font_tinycurs_006e.png new file mode 100644 index 0000000..22d177a Binary files /dev/null and b/boards/textures/font_tinycurs_006e.png differ diff --git a/boards/textures/font_tinycurs_006f.png b/boards/textures/font_tinycurs_006f.png new file mode 100644 index 0000000..52b2e64 Binary files /dev/null and b/boards/textures/font_tinycurs_006f.png differ diff --git a/boards/textures/font_tinycurs_0070.png b/boards/textures/font_tinycurs_0070.png new file mode 100644 index 0000000..05b3e5b Binary files /dev/null and b/boards/textures/font_tinycurs_0070.png differ diff --git a/boards/textures/font_tinycurs_0071.png b/boards/textures/font_tinycurs_0071.png new file mode 100644 index 0000000..05d4010 Binary files /dev/null and b/boards/textures/font_tinycurs_0071.png differ diff --git a/boards/textures/font_tinycurs_0072.png b/boards/textures/font_tinycurs_0072.png new file mode 100644 index 0000000..b36ac4d Binary files /dev/null and b/boards/textures/font_tinycurs_0072.png differ diff --git a/boards/textures/font_tinycurs_0073.png b/boards/textures/font_tinycurs_0073.png new file mode 100644 index 0000000..6e247b4 Binary files /dev/null and b/boards/textures/font_tinycurs_0073.png differ diff --git a/boards/textures/font_tinycurs_0074.png b/boards/textures/font_tinycurs_0074.png new file mode 100644 index 0000000..20224c9 Binary files /dev/null and b/boards/textures/font_tinycurs_0074.png differ diff --git a/boards/textures/font_tinycurs_0075.png b/boards/textures/font_tinycurs_0075.png new file mode 100644 index 0000000..8e1c3e2 Binary files /dev/null and b/boards/textures/font_tinycurs_0075.png differ diff --git a/boards/textures/font_tinycurs_0076.png b/boards/textures/font_tinycurs_0076.png new file mode 100644 index 0000000..84465fb Binary files /dev/null and b/boards/textures/font_tinycurs_0076.png differ diff --git a/boards/textures/font_tinycurs_0077.png b/boards/textures/font_tinycurs_0077.png new file mode 100644 index 0000000..0428693 Binary files /dev/null and b/boards/textures/font_tinycurs_0077.png differ diff --git a/boards/textures/font_tinycurs_0078.png b/boards/textures/font_tinycurs_0078.png new file mode 100644 index 0000000..aa640e9 Binary files /dev/null and b/boards/textures/font_tinycurs_0078.png differ diff --git a/boards/textures/font_tinycurs_0079.png b/boards/textures/font_tinycurs_0079.png new file mode 100644 index 0000000..6b1da68 Binary files /dev/null and b/boards/textures/font_tinycurs_0079.png differ diff --git a/boards/textures/font_tinycurs_007a.png b/boards/textures/font_tinycurs_007a.png new file mode 100644 index 0000000..db7af09 Binary files /dev/null and b/boards/textures/font_tinycurs_007a.png differ diff --git a/boards/textures/font_tinycurs_007b.png b/boards/textures/font_tinycurs_007b.png new file mode 100644 index 0000000..8c3c1b6 Binary files /dev/null and b/boards/textures/font_tinycurs_007b.png differ diff --git a/boards/textures/font_tinycurs_007c.png b/boards/textures/font_tinycurs_007c.png new file mode 100644 index 0000000..37aa7bb Binary files /dev/null and b/boards/textures/font_tinycurs_007c.png differ diff --git a/boards/textures/font_tinycurs_007d.png b/boards/textures/font_tinycurs_007d.png new file mode 100644 index 0000000..b0e4b74 Binary files /dev/null and b/boards/textures/font_tinycurs_007d.png differ diff --git a/boards/textures/font_tinycurs_007e.png b/boards/textures/font_tinycurs_007e.png new file mode 100644 index 0000000..86b6112 Binary files /dev/null and b/boards/textures/font_tinycurs_007e.png differ diff --git a/boards/textures/font_tinycurs_2018.png b/boards/textures/font_tinycurs_2018.png new file mode 100644 index 0000000..d7535fd Binary files /dev/null and b/boards/textures/font_tinycurs_2018.png differ diff --git a/boards/textures/font_tinycurs_2019.png b/boards/textures/font_tinycurs_2019.png new file mode 100644 index 0000000..0cdf90d Binary files /dev/null and b/boards/textures/font_tinycurs_2019.png differ diff --git a/boards/textures/font_tinycurs_201c.png b/boards/textures/font_tinycurs_201c.png new file mode 100644 index 0000000..71d3a16 Binary files /dev/null and b/boards/textures/font_tinycurs_201c.png differ diff --git a/boards/textures/font_tinycurs_201d.png b/boards/textures/font_tinycurs_201d.png new file mode 100644 index 0000000..f239395 Binary files /dev/null and b/boards/textures/font_tinycurs_201d.png differ diff --git a/boards/tools/updatepo.sh b/boards/tools/updatepo.sh new file mode 100755 index 0000000..feb2504 --- /dev/null +++ b/boards/tools/updatepo.sh @@ -0,0 +1,25 @@ +#! /bin/bash + +# To create a new translation: +# msginit --locale=ll_CC -o locale/ll_CC.po -i locale/template.pot + +cd "$(dirname "${BASH_SOURCE[0]}")/.."; + +# Extract translatable strings. +xgettext --from-code=UTF-8 \ + --language=Lua \ + --sort-by-file \ + --keyword=S \ + --keyword=NS:1,2 \ + --keyword=N_ \ + --keyword=F \ + --add-comments='Translators:' \ + --add-location=file \ + -o locale/template.pot \ + $(find . -name '*.lua') + +# Update translations. +find locale -name '*.po' | while read -r file; do + echo $file + msgmerge --update $file locale/template.pot; +done -- cgit v1.2.3