From 69201cdc285548d65f20f2ed0e1b379ebd7fdded Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Mon, 10 Jun 2024 16:14:39 +0300 Subject: [PATCH] feat(utilities): Add automatic upgrades for many things deprecated in SILE v0.15 --- upgrade-lua.sed | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/upgrade-lua.sed b/upgrade-lua.sed index a6126b58..f2aea329 100644 --- a/upgrade-lua.sed +++ b/upgrade-lua.sed @@ -32,3 +32,16 @@ s#nodefactory\.hfillGlue#nodefactory.hfillglue()#g s#SILE\.length\.\(make\|new\|parse\)#SILE.types.length#g s#\bopen-page\b#open-spread#g s#\bSILE\.settings\.\b#SILE.settings:#g +s#\bSILE.color\b#SILE.types.color#g +s#\bSILE.colorparser\b#SILE.types.color#g +s#\bSILE.length\b#SILE.types.length#g +s#\bSILE.measurement\b#SILE.types.measurement#g +s#\bSILE.nodefactory\b#SILE.types.node#g +s#\bSILE.paperSizeParser\b#SILE.papersize#g +s#\bSILE.units\b#SILE.types.unit#g +s#\bSU.contentToString\b#SU.ast.contentToString#g +s#\bSU.hasContent\b#SU.ast.hasContent#g +s#\bSU.stripContentPos\b#SU.ast.stripContentPos#g +s#\bSU.subContent\b#SU.ast.subContent#g +s#\bSU.walkContent\b#SU.ast.walkContent#g +s#\balignright\b#raggedleft#g