fromDotsPixTxt

Read and convert a formatted ASCII text file and an Open Inventor file describing a single geometrical 'Dot' object into an Open Inventor scene graph and output 3-D geometry file describing an entire DotsPlus Braille Font.

Software Author

Stewart Dickson © 2005 http://emsh.calarts.edu/~mathart

Contents


Note: The DotsPlus Braille Fonts are Copyright © 2003 by
ViewPlus(R) Technologies 800 NW Starker Avenue - Corvallis, Oregon 97330 U.S.A. ph: 866.836.2184 - fax: 541.738.6505 - e-mail: info@viewplustech.com web: http://www.viewplustech.com

This program 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 2 of the License, or (at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

http://opensource.org/licenses/gpl-license.php


The formatted input ASCII text file contains lines of the form:
 34 'dquote' g_height = 8 g_width = 5 c_height = 8 c_width = 5 bline = 0
xxxxx
xxxxx
xxxxx
x0x0x
x0x0x
x0x0x
xxxxx
xxxxx
The Braille font glyph for the character 'double-quote' is described by a block of ASCII text with an 'x' indicating empty space and a '0' indicating a [hysical 'Dot'. There is an implied vertical and horizontal pitch per 'Dot' address of 0.1 inch.

URL(s):


Dependencies

Notes on compiling

The file Makefile.fromDotsPicTxt contains configuration lines for compiling for either of: SGI Mips3 (Irix) Linux or MacOS-X (Darwin) as follows:

# Compiling for IRIX
# CXX = CC
# USER_CXXFLAGS = -g -I. -DIRIX_MIPS3
# CXXFLAGS = $(USER_CXXFLAGS) -DFUNCPROTO -DXTFUNCPROTO -mips3
# USER_LIBRARIES = -lInventor -lm -lmalloc_cv
# LIBS = $(USER_LIBRARIES) -lGL -lGLU

# Compiling for Linux_i368/GNU
CXX = g++
USER_CXXFLAGS = -g -I. -DLINUX_i386
CXXFLAGS = $(USER_CXXFLAGS) -DFUNCPROTO -DXTFUNCPROTO
USER_LIBRARIES = -lInventor -lm
LIBS = $(USER_LIBRARIES) -lGL -lGLU

# Compiling for MacOS-X/Darwin/PPC
# CXX = cc -framework inventor -framework OpenGL
# USER_CXXFLAGS = -fstrict-prototype -g -I. -DMACOSX_PPC
# CXXFLAGS = $(USER_CXXFLAGS) -DFUNCPROTO -DXTFUNCPROTO
# USER_LIBRARIES = 
# LIBS = -lm
You want to edit Makefile.fromDotsPicTxt to activate compiler options for your particular platform, and comment-out ('# ') those lines you want to disable.

This package is currently geared toward GNU's 'gmake' and 'gcc'.


Command usage: fromDotsPicTxt dotpicfile.txt dot.obj objfile.iv