diff options
Diffstat (limited to 'graphics/metapost/contrib/macros/wordcloud/scripts/wordcloud.lua')
-rw-r--r-- | graphics/metapost/contrib/macros/wordcloud/scripts/wordcloud.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/graphics/metapost/contrib/macros/wordcloud/scripts/wordcloud.lua b/graphics/metapost/contrib/macros/wordcloud/scripts/wordcloud.lua index 209ab0ca71..8df2c5a405 100644 --- a/graphics/metapost/contrib/macros/wordcloud/scripts/wordcloud.lua +++ b/graphics/metapost/contrib/macros/wordcloud/scripts/wordcloud.lua @@ -4,7 +4,7 @@ %% drawing wordclouds %% %% with METAPOST and Lua %% %% chupin@ceremade.dauphine.fr %% -%% Version 0.1 (aout 2023) %% +%% Version 0.2 (septembre 2023) %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This work may be distributed and/or modified under the conditions of @@ -128,7 +128,6 @@ function wc_build_mp_code(table_weight,maximum,rotation) ]] local i=0 for i=1, #tabular_weight do - str_mp=str_mp.."words["..i.."]:=\""..tabular_weight[i][1].."\";" str_mp=str_mp.."weights["..i.."]:="..tabular_weight[i][2]..";" if (i>=maximum) then @@ -175,7 +174,6 @@ end -- build mp code for the wordcloud of a list given in LaTeX command function wc_build_wordcloud(str,rotation,scale,margin,usecolor,colors) - maximum = maximum or 50 local table = wc_list_to_table(str) local lgth_table = wc_size_of_table(table) |