head 1.3; access; symbols pkgsrc-2023Q4:1.3.0.8 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.6 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.4 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.2 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.2.0.26 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.24 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.22 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.20 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.18 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.16 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.14 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.12 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.10 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.8 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.6 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.2 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.4 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.1.0.10 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.8 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.6 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.4 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.2 pkgsrc-2018Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2023.02.28.10.37.22; author hauke; state Exp; branches; next 1.2; commitid gTslJjsIYaTzihfE; 1.2 date 2019.11.03.19.24.34; author rillig; state Exp; branches; next 1.1; commitid IeVwuZv3L6bHkrJB; 1.1 date 2018.08.31.09.24.25; author hauke; state Exp; branches; next ; commitid s2xXND0oD93uNfQA; desc @@ 1.3 log @Update emulators/tcl-hp-15c to v4.5.00 From upstream's changelog: Version 4.5.00, Build 6308 Bug fixes When stepping into an error with SST in Run mode, the display did not show "Error #" DM15: Reading and writing worked only when option "Ask for each operation" was activated. When writing the stack to the DM15, an application error could occur under certain conditions. When writing to the DM15, Complex mode was deactivated for devices with firmware version V.23 and higher. macOS: The program menu did not open at the mouse position, when clicking GTO with the right mouse button. Changes NEW: Preferences setting to save the last screen position More Preferences settings are accessible directly from the main menu bar. Program description dialogue: A Search and Replace window is available for the program description. The preference setting "Show resources in tabs" was moved to the "Preferences" dialogue. The "Search/Replace" and the "Resource" window can be switched on and off. The toolbar buttons in edit mode can now show icons as an alternative to the tag text. A context menu (right mouse click) for HTML tagging was added. New submenu for Superscript/subscript Unicode characters in the 'Symbols' menu. The 'Symbols' menu is now available as context menu in the entry fields for labels, storage registers and flags. Improved rendering of lists in preview mode The renderer now uses the parameter 'start' of an
    tag. This is needed in lists with labels, storage registers or flags that do not start at 1. When reloading a description, the user is asked whether to discard any changes macOS: The native macOS "USB to UART" driver, introduces with Big Sur, is now supported. Improved layout and behaviour of the Mnemonic Converter. In PRGM mode programs can now be pasted directly from the clipboard into the Simulator. New short-cuts ? : [g] F?, query the status of a flag. ctrl-F2 : Menu bar on/off on Windows and Linux. On macOS the menu bar is always on. Executables are packed with tclkits based on Tcl/Tk 8.6.12 for all operating systems. Known issues macOS When minimising the description dialogue, it becomes immediately maximised again Artifacts along the top and bottom edge of the simulator keys for some font sets Some users got errors when they installed the HP-15C Simulator Font. It is recommended to deinstall all versions of the font before installing it again. Linux, macOS: The behaviour described on page 144 of the Owner's Handbook when a letter key is 'held down for longer than about 3 seconds', works on all systems when you use the mouse. When you use the keyboard, it works on Windows, but not on macOS and Linux. Version 4.4.00, Build 6211 Bug fixes SOLVE failed in some cases, when "Strict HP-15 behaviour" was enabled. Changes Memory and history file: Starting with this version, only ".mme" (matrix memory) memory files are loaded. Older memory files with the extension ".mem" are ignored, even if no ".mme" file is found. Linux and macOS: The memory and the history file are now in a (hidden) subdirectory ~/.HP-15C. Existing files are moved to the new location. The file names of the memory file, HP-15C.mme and the recent file history, HP-15C.hst, are now the same on all systems. Program description dialogue: The "Symbols" menu now inserts Unicode characters by default instead of HTML Entities (except for < and >). This can be deactivated in the Preferences. The is now also rendered. Supported graphic formats are PNG and GIF. New Preferences setting to automatically open the dialogue after loading a program. Improved preview for nested lists. Additional keyboard short-cuts (see section "Programs | Program Documentation" in the HTML help). HTML export: Preformatted text, i.e.
    \u2026
    , has a light grey background. Most keys have the same width, except some with long labels such as MATRIX. Previously the width was defined by the label. Optimised layout for Labels and Storage Register descriptions Preferences: New option to show descriptions in the storage register menus. DM15 support: New entry in the DM15 menu to read the system information, e.g. firmware type, version etc. Program labels where the description starts with a "#" are not in the GSB menu. This allows it to hide subprograms. Updated all URLs from "http" to "https" when supported by the web site. Harmonised titels of all windows, message boxes and dialogue boxes. Added a "Keyboard Usage" table to the "Keyboard" section in the documentation. Windows 11 support added. New short-cuts ? : [g] F?, query tthe status of a flag. A : Computes the absolute value of the number in the X-register. shift-D : Converts the number in the X-register from radians to degrees. shift-F : Computes the decimal fraction of the number in the X-register. shift-M : Converts the number in the X-register from a decimal hours into an hours-minutes-seconds-decimal seconds format. shift-H : Converts the number in the X-register from hours-minutes-seconds-decimal seconds format into decimal hours. shift-R : Converts the number in the X-register from degrees to radians. Known issues macOS When minimising the description dialogue, it becomes immediately maximised again Artifacts along the top and bottom edge of the simulator keys for some font sets Some users got errors when they installed the HP-15C Simulator Font. It is recommended to deinstall all versions of the font before installing it again. Linux, macOS: The behaviour described on page 144 of the Owner's Handbook when a letter key is 'held down for longer than about 3 seconds', works on all systems when you use the mouse. When you use the keyboard, it works on Windows, but not on macOS and Linux. Version 4.3.00, Build 6111 Bug fixes Improved interrupt handling while running a program Only mouse clicks on a simulator key will interrupt a program. Previously any mouse click interrupted a program. The program now stops immediately and more reliable. Previously, especially when the program uses SOLVE or [integral]xy, it could take a few seconds, or you even had to press or click multiple times, to actually stop the program. When both SOLVE and [integral]xy were used in a program, the display did not flash "running" but showed it permanently the return stack could overflow resulting in "Error 5" interrupting the program could result in an invalid return stack. Resulting in "Error 5" with the next GSB command Program description dialogue: When inserting a new tag or after undo, the new or restored text was not highlighted When inserting a tag or a symbol into unchanged documentation, the change status was not set. In specific multi display configurations, reloading the dialogue could result in an application error When opening a faulty program file, the error message was incorrect Linux: On screens with high DPI values, the simulator display and the function labels were misaligned Linux: On systems with extreme scaling, no valid font set was found Changes Program description dialogue: Links in the description can now be clicked
     is now used instead of  for formatted code,
                e.g. formulas
                Short-cuts for HTML tags  and  added
                Enhanced and optimised "Symbols" menu
                Switching between "Show resources in tabs" and list mode
                does not change the size of the dialogue (unless it is to
                small for list mode)
                Dialogues to warn about unsaved changes are more consistent
    
            Depending on the functions used in an HP-15C program,
            execution time has been reduced by 30% to 70%
            Windows: The font sets for normal and high DPI values have
            been merged.
            Linux package support: The environment variable HP15Cdocdir
            can be used to install the simulator documentation separate
            from the program binary file.
            Mnemonic Converter: The Unicode 'Latin Letter Small Capital
            \u1d07' is accepted as exponent character , e.g. 1\u1d077, to
            support Free42 output conversion.
            The oldest supported Tcl version is now 8.6.6 (was: 8.5.12)
    
        Known issues
            macOS Big Sur:
            The following issues are incompatibilities between the Tcl/Tk
            runtime and macOS Big Sur. Earlier versions of macOS are not
            affected.
                Active buttons on dialogues have white text on white
                background, the active button text turns black if you
                change the focus back to the main window
                When minimising the description dialogue, it becomes
                immediately maximised again
                Fonts in the menus are a bit blurry on some systems
                Artifacts along the top and bottom edge of the simulator
                keys on some displays (>24 inch?)
    
            Linux, macOS:
            The behaviour described on page 144 of the Owner's Handbook
            when a letter key is 'held down for longer than about 3
            seconds', works on all systems when you use the mouse. When
            you use the keyboard, it works on Windows, but not on
            MacOS X and Linux.
    
            macOS:
                Some users got errors when they installed the new HP-15C
                Simulator Font version under macOS El Capitan and
                newer. The macOS Sierra font validation program reports no
                warnings or errors. It is recommended to deinstall any
                older version of the font before installing the new
                version. Despite the errors, the font can be installed and
                used.
                The "Emoji and Symbols" menu does not work. This is a
                known Tcl/Tk bug.
    
    Version 4.2.00, Build 6026
    
        Bug fixes
            SOLVE could fail, when the two initial estimates were
            identical.
            STO or RCL followed by g (i), to set or get the value of a
            matrix element, did not work.
            x<-> failed when the X-register contained a matrix
            descriptor.
            In ENG 0 display format, numbers with 3 digits in the mantissa
            were displayed with only 2 digits.
            Writing the LU form of a matrix of dimension n to the DM15
            failed, when the number of permutations was smaller then n-1.
            When the display was blinking due to an overflow, the blinking
            was erroneously stopped by switching the PRGM mode on/off.
    
        Changes
            Program description dialogue:
                New preferences setting: "Automatic preview". Important
                note: The setting is 'On' by default.
                If set to 'On' and the "Usage" field of the program
                description contains HTML tags or entities, the program
                description dialogue opens in preview mode.
                The HTML tag buttons layout was optimised. The effect is
                most visible under macOS.
                Short-cuts are now defined for the supported HTML tags and
                the HP-15C specific css classes
                The labels for the tag buttons for bold and italic are now
                in the language of the UI.
                New menu to add HTML Entities, i.e. Greek letters,
                mathematical symbols and arrows.
                Improved rendering of the HP-15C specific css classes in
                preview mode.
                HTML Entities, e.g. "π", are now rendered using the
                corresponding Unicode character, e.g. pi.
                The initial width of the dialogue is now always appx. 40% of the screen.
                The initial height on large screens has been increased.
                When switching "Show resources in tabs" on or off, only
                this section is redrawn and not the whole window.
                Resources are now always shown in at least two columns if
                more then one of each type is used in a program.
                The "Author Information" is now inserted into an empty
                "Usage" field, when the program description dialogue is
                openend.
    
            Reading and writing files:
                With the HTML export, "Keys in black and white" now also
                affect the program description and not only the program
                listing.
                With the HTML export and "Structure in English" activated,
                the decimal point is now always a dot and the thousands
                seperator a comma. Previously the current display settings
                where used.
                When opening program files, key sequences with a decimal
                point, e.g. STO . 3, can now be formatted as { 45 ,3 } or
                { 45 .3 } in addition to { 45 48 3 }. The additional
                format is more common in the Web.
    
            New short-cut
    
    	[N] : Computes the integer of the number in the X-register, i.e. makes it a natural number.
    	Alt-F3 : Show GSB menu.
    
            The documentation was reviewed and standardised with regard to
            spelling, grammar and presentation.
            Only 64-bit executables are provided from now on. For 32-bit
            operating systems the source code version can be used, if
            Tcl/Tk is available on that system.
            Only macOS 10.15 and newer versions are supported from now
            on. The executables may run on older versions, but this has
            not been tested.
            Executables are now packed with tclkits based on Tcl/Tk 8.6.10
            for all operating systems.
            In the 'About' dialogue, the Tcl/Tk shell program and the
            Tcl/Tk version are now only shown in the source code version.
    
        Known issues
            Linux, macOS:
            The behaviour described on page 144 of the Owner's Handbook
            when a letter key is 'held down for longer than about 3
            seconds', works on all systems when you use the mouse. When
            you use the keyboard, it works on Windows, but not on
            MacOS X and Linux.
            macOS:
                Some users got errors when they installed the new HP-15C
                Simulator Font version under macOS El Capitan and
                newer. The macOS Sierra font validation program reports no
                warnings or errors. It is recommended to deinstall any
                older version of the font before installing the new
                version. Despite the errors, the font can be installed and
                used.
                The "Emoji and Symbols" menu does not work. This is a
                known Tcl/Tk bug.
    
    Version 4.1.00, Build 5914
    
        Bug fixes
            It was possible to close the simuator with an invalid number
            in the X register. The memory file had to be deleted, before
            the Simulator would start again.
            Source code version: The simulator could be started only from
            the directory with the source code.
            The Mnemonic Converter created invalid Key Codes for STO and
            RCL in USER mode.
            On some Linux systems with 4k displays the area around the
            display could be corrupted.
    
        Changes
            NEW: A "Recent programs" history is now available as a submenu
            to the context or ON popup menu and in the "Files" menu of the
            main menu bar.
            Like the real HP-15C, the Simulator now uses the Romberg
            method for numerical integration. Previous versions used the
            Simpson method and the implementation - over 15 years old -
            failed for some integrals.
            Improved layout of the backside, especially for larger font sets.
            Revised and improved program description dialogue:
                The "Highlight tags" check box has been moved from the
                Program Description dialogue to the Preferences dialogue.
                The preview mode now supports the HTML tags "" and "".
                When an HTML tag range is highlighted, e.g. "some
                text", clicking the corresponding tag-button now
                removes the tag.
                The blank part of indented text did not have the correct
                background colour.
                The last position on the screen is stored. The position is
                discarded when the program is closed.
    
            Executables are now packed with tclkits based on Tcl/Tk 8.6.9
            for Windows and Linux, 8.6.8 for macOS HighSierra and 8.6.7
            macOS prior to macOS HighSierra.
    
        Known issues
            Linux, macOS:
            The behaviour described on page 144 of the Owner's Handbook
            when a letter key is 'held down for longer than about 3
            seconds', works on all systems when you use the mouse. When
            you use the keyboard, it works on Windows, but not on
            MacOS X and Linux.
            macOS:
                Some users got errors when they installed the new HP-15C
                Simulator Font version under macOS El Capitan and
                newer. The macOS Sierra font validation program reports no
                warnings or errors. It is recommended to deinstall any
                older version of the font before installing the new
                version. Despite the errors, the font can be installed and
                used.
                A user reported that the Simulator does not run on
                MacOS X 10.6 "Snow Leopard". It seems that at
                least MacOS X 10.7 "Lion" is needed.
                The "Emoji and Symbols" menu does not work. This is a
                known Tcl/Tk bug.
    @
    text
    @# $NetBSD: Makefile,v 1.2 2019/11/03 19:24:34 rillig Exp $
    
    DISTNAME=	HP-15C_4.5.00_Source
    PKGNAME=	tcl-hp-15c-${PKGVER}
    PKGVER=		4.5.00.6308
    CATEGORIES=	emulators math
    MASTER_SITES=	-https://bit.ly/3ksi3SI
    EXTRACT_SUFX=	.zip
    
    MAINTAINER=	hauke@@NetBSD.org
    HOMEPAGE=	http://hp-15c.homepage.t-online.de/
    COMMENT=	Simulated HP-15C RPN calculator
    LICENSE=	gnu-gpl-v3
    
    DEPENDS+=	tk>=8.6.6:../../x11/tk
    
    NO_CONFIGURE=	YES
    NO_BUILD=	YES
    
    USE_TOOLS+=	unzip pax find sed
    
    HP15CDIR=	share/tcl-hp-15c
    
    INSTALLATION_DIRS=	share/fonts/X11/TTF
    INSTALLATION_DIRS+=	${HP15CDIR}
    INSTALLATION_DIRS+=	bin
    
    FONTS_DIRS.ttf=		${PREFIX}/share/fonts/X11/TTF
    
    do-extract:
    	${MKDIR} ${WRKSRC} ; \
    	cd ${WRKSRC} ; \
    	${UNZIP_CMD} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
    
    post-extract:
    	${SED} -e "s,@@PREFIX@@,${PREFIX},g" \
    		< ${FILESDIR}/hp-15c.sh > ${WRKDIR}/hp-15c.sh
    
    do-install:
    	${FIND} ${WRKSRC} -type f -exec chmod -x \{\} \;
    	cd ${WRKSRC} ; ${PAX} -rw . ${DESTDIR}${PREFIX}/${HP15CDIR}
    	${INSTALL_DATA} ${WRKSRC}/HP-15C_Simulator_Font.ttf \
    		${DESTDIR}${FONTS_DIRS.ttf}/HP-15C_Simulator_Font.ttf
    	${INSTALL_SCRIPT} ${WRKDIR}/hp-15c.sh ${DESTDIR}${PREFIX}/bin/hp-15c
    
    .include "../../lang/tcl/buildlink3.mk"
    .include "../../mk/bsd.pkg.mk"
    @
    
    
    1.2
    log
    @emulators: align variable assignments
    
    pkglint -Wall -F --only aligned --only indent -r
    
    No manual corrections.
    @
    text
    @d1 1
    a1 1
    # $NetBSD: Makefile,v 1.1 2018/08/31 09:24:25 hauke Exp $
    d3 1
    a3 1
    DISTNAME=	HP-15C_4.0.00_Source
    d5 1
    a5 1
    PKGVER=		4.0.00.5811
    d7 1
    a7 1
    MASTER_SITES=	-http://bit.ly/2FQ82VL
    d15 1
    a15 1
    DEPENDS+=	tk>=8.3.2:../../x11/tk
    @
    
    
    1.1
    log
    @Add a TCL based simulator for the programmable RPN pocket calculator
    Hewlett-Packard HP-15C
    @
    text
    @d1 1
    a1 1
    # $NetBSD$
    d15 1
    a15 1
    DEPENDS+=       tk>=8.3.2:../../x11/tk
    d17 2
    a18 2
    NO_CONFIGURE=   YES
    NO_BUILD=       YES
    d20 1
    a20 1
    USE_TOOLS+=     unzip pax find sed
    d28 1
    a28 1
    FONTS_DIRS.ttf= 	${PREFIX}/share/fonts/X11/TTF
    @