|
From: | Rik |
Subject: | Re: first help sentence truncated |
Date: | Thu, 30 Aug 2018 11:13:11 -0700 |
On 08/30/2018 09:18 AM, John W. Eaton
wrote:
On 08/29/2018 05:06 PM, Rik wrote:I agree, this isn't worth too much time. I changed the regexp pattern on the development branch: + ## Extract first line by searching for a period followed by whitespace + ## followed by a capital letter (Nearly the same rule as Texinfo). + period_idx = regexp (help_text, '\.\s+(?:[A-Z]|\n)', "once"); This is closer to what is meant by a "sentence" but it still won't work on the motivating example. The HTML for that is shown below. Smooths the y vs. x values of 1D data by Tikhonov regularization. The smooth y-values are returned as yhat. The texinfo has @var{y} and @var{x} so when this is expanded by makeinfo to plain text the result is Smooths the Y vs. X values of 1D data by Tikhonov regularization. The smooth y-values are returned as YHAT. The abbreviation "vs." still looks like a sentence end because the next letter following the period is capitalized. At this point, I think it would be easier to rewrite the help text and expand "vs." to "versus". --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |