Message Boards Message Boards

Need help in parsing usage definitions.

Posted 2 years ago

In my quest to create digital curb cuts (more on that later on), I hit a wall. So far this code will break up/split up a usage text block into smaller chunks 98% of the time:

getUsage12[funNm51_String] :=   Module[    {funUsg, nm,
    gdList = {"ChannelObject", "CramerVonMisesTest", "DatePattern", 
      "DefaultButton", "DictionaryWordQ", "FileNameDrop", 
      "FileNameTake", "FinancialIndicator", "FindChannels", 
      "FormulaLookup", "GestureHandler", "GetContext", "LocalObject", 
      "GetEnvironment", "MorphologicalTransform", "Pluralize", 
      "ResamplingAlgorithmData", "SpellingCorrectionList", 
      "StringTrim", "LogRankTest", "AndersonDarlingTest", 
      "BrownForsytheTest", "KuiperTest", "LocationTest", "LeveneTest",
       "KolmogorovSmirnovTest", "LocationEquivalenceTest", 
      "MardiaSkewnessTest", "MardiaKurtosisTest", 
      "MardiaCombinedTest", "MannWhitneyTest", "ShapiroWilkTest", 
      "SignedRankTest", "SignTest", "PairedTTest", "PairedZTest", 
      "PearsonChiSquareTest", "VarianceEquivalenceTest", 
      "VarianceTest", "WatsonUSquareTest", "ZTest"}},    If[MemberQ[gdList, funNm51],
    funUsg = TextSentences[Information[funNm51, "Usage"]],
    funUsg = 
     TextSentences[
      StringReplace[
       Information[funNm51, "Usage"], {"\n" -> "\n\n", 
        "TI" | "TR" -> ""}]]];    nm = Length@funUsg;    Association@{"Usage" ->
      Association@{
        Association@{"Length" -> nm},
        Association@("Usage" <> ToString[#] -> funUsg[[#]] & /@ 
           Range[nm])}}    ];

However, the two troublesome functions I have yet to figure out how to break up: {CloudObject, ConnectSystemModelComponents} Suggestions how to improve my code to handle those two? I know it can be done since its shown in using the Code Assist tool. Thank you!

POSTED BY: Andrew Meit
4 Replies
Posted 2 years ago

When WLdata works, I can do this code:

StringReplace[# <> ".", ".." -> "."] & /@ StringSplit[  
StringReplace[ WolframLanguageData["Plot", "PlaintextUsage"],
 {"\\!\\(\\*" -> "", 
     ",AutoSpacing->False" -> ""}], ". "]

which gives what I want:

{"Plot[f, {x, xmin, xmax}] generates a plot of f as a function of x
from xmin to xmax.","Plot[{f1, f2, ...}, {x, xmin, xmax}] plots
several functions fi.","Plot[{..., w[fi],...},...] plots fi with
features defined by the symbolic wrapper w.","Plot[..., {x}∊reg] takes
the variable x to be in the geometric region reg."}

However, sadly, WLD often fails Generating error msg: Missing["RetrievalFailure"] on these symbols:

{"AbortScheduledTask","Absolute","ActionDelay","ActionMenuBox","ActionMenuBoxOptions","Active","ActiveItem","AddOnHelpPath","Adjugate","AlgebraicRules","AlgebraicRulesData","AlignmentMarker","AllowAdultContent","AllowIncomplete","AllowKernelInitialization","AllowScriptLevelChange","AlternateImage","AmbientLight","Analytic","AnatomyForm","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDisplayTime","AnimatorBox","AnimatorBoxOptions","AnimatorElements","AppendCheck","ApplicationIdentificationKey","ArgumentCountQ","Arrow3DBox","ArrowBox","AspectRatioFixed","AstronomicalData","AsynchronousTaskObject","AsynchronousTasks","AtomLabels","AtomLabelStyle","AttachedCell","AudioDevice","AudioLooping","Authenticate","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndentSpacings","AutoloadPath","AutoMatch","AutomaticImageSize","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoScaling","AutoStyleOptions","AutoStyleWords","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","BackgroundAppearance","BackgroundTasksSettings","Backsubstitution","BeginFrontEndInteractionPacket","Beveled","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BilateralZTransform","BinnedVariogramList","BioSequencePlot","BlankForm","BondLabels","BondLabelStyle","Bounds","Box","BoxBaselineShift","BoxDimensions","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxRotation","BoxRotationPoint","Bra","BraKet","BrowserCategory","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineSurface3DBox","BSplineSurface3DBoxOptions","ButtonCell","ButtonContents","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonMargins","ButtonNote","ButtonStyle","ButtonStyleMenuListing","CachedValue","CacheGraphics","CardinalBSplineBasis","CDFInformation","CellBoundingBox","CellContents","CellElementsBoundingBox","CellElementSpacings","CellEvaluationLanguage","CellFrameStyle","CellGroupingRules","CellHorizontalScrolling","CellInsertionPointCell","CellLabelMargins","CellLabelPositioning","CellLabelTemplate","CellSize","CellTrayWidgets","CenteredInterval","ChangeOptions","ChannelDatabin","ChannelListenerWait","ChannelPreSendFunction","CharacterEncodingsPath","ChartElementData","ChartElementDataFunction","ChebyshevDistance","CheckAll","CheckboxBox","CheckboxBoxOptions","ChemicalFormula","ChemicalReaction","CircleBox","ClassifierInformation","ClipboardNotebook","ClipFill","ClockwiseContourIntegral","Closed","ClosingAutoSave","ClosingEvent","CloudConnections","CloudObjectInformation","CloudObjectInformationData","CloudUsageData","CloudUserID","Coarse","CoefficientDomain","ColonForm","ColorOutput","ColorSelectorSettings","ColorSetterBox","ColorSetterBoxOptions","ColumnBackgrounds","ColumnForm","CommonDefaultFormatTypes","CompilerEnvironmentAppend","CompleteIntegral","CompletionsListPacket","ComponentwiseContextMenu","Compose","CompressedData","ConcaveHullMesh","ConeBox","ConfigurationPath","ConformationMethod","ConicHullRegion3DBox","ConicHullRegionBox","Connect","ConnectKernel","ConnectParallelKernel","ConsoleMessage","ConsoleMessagePacket","ConstantArrayLayer","ConstantPlusLayer","ConstantTimesLayer","ConstrainedMax","ConstrainedMin","ContentDetectorFunction","ContentsBoundingBox","ContextMenu","Continuation","ContourGraphics","ContourIntegral","ContourLines","ContourSmoothing","ControlAlignment","ControlGroupContentsBox","ControllerDuration","ControllerInformationData","ConversionOptions","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","Cookies","CopyTag","CoreNilpotentDecomposition","CoulombF","CoulombG","CoulombH1","CoulombH2","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CreatePalettePacket","CreateScheduledTask","CreateTemporary","CSGRegion","CSGRegionQ","CSGRegionTree","CuboidBox","CurlyDoubleQuote","CurlyQuote","CurrentlySpeakingPacket","Curry","CylinderBox","C$","DampingFactor","DatabinRemove","DataCompression","DatasetDisplayPanel","Date","DateDelimiters","DateScale","Debug","DebugTag","Decimal","DeclareKnownSymbols","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOutputFormatType","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultValue","DefaultValues","DefineExternal","DegreeLexicographic","DegreeReverseLexicographic","DeleteWithContents","DeletionWarning","DelimitedArray","DelimiterMatching","DensityGraphics","DestroyAfterEvaluation","DeviceOpenQ","DiacriticalPositioning","DialogIndent","DialogLevel","DifferenceOrder","DigitBlockMinimum","DirectionalLight","DisableConsolePrintPacket","DiskBox","DispatchQ","Display","DisplayFlushImagePacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistributionDomain","Divergence","DocumentGeneratorInformationData","DomainRegisteredQ","DomainRegistrationInformation","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","DotPlusLayer","DoubleContourIntegral","DoublyInfinite","Down","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","DualLinearProgramming","DualPlanarGraph","DumpGet","DynamicBox","DynamicBoxOptions","DynamicLocation","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicName","DynamicNamespace","DynamicReference","DynamicWrapperBox","DynamicWrapperBoxOptions","D$","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeDashing","EdgeJoinForm","EdgeLabeling","EdgeOpacity","EdgeRenderingFunction","EdgeThickness","EdgeValueRange","EdgeValueSizes","EditButtonSettings","EditCellTagsSettings","EliminationOrder","EllipticReducedHalfPeriods","EmbeddingObject","EmphasizeSyntaxErrors","Empty","EnableConsolePrintPacket","EndAdd","EndFrontEndInteractionPacket","EngineEnvironment","Enter","EqualColumns","EqualRows","EquatedTo","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EstimatedVariogramModel","Evaluated","EvaluateScheduledTask","EvaluationCompletionAction","EvaluationMode","EvaluationOrder","EvaluationRateLimit","EventEvaluator","EventHandlerTag","ExactRootIsolation","ExitDialog","ExpectationE","ExpectedValue","ExponentPosition","ExportAutoReplacements","ExportPacket","ExpressionPacket","ExpressionUUID","ExternalCall","ExternalDataCharacterEncoding","ExternalFunctionName","E$","FactorComplete","Fail","FEDisableConsolePrintPacket","FEEnableConsolePrintPacket","FileFormatProperties","FileHandler","FileInformation","FileName","FileNameDialogSettings","FileNameToFormatList","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","FindEdgeColoring","FindIsomers","FindIsomorphicSubgraph","FindPlanarColoring","FindRegionTransform","FindSubgraphIsomorphism","FindVertexColoring","Fine","FitAll","FlashSelection","FlightData","FlushPrintOutputPacket","Font","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FormatRules","FormatTypeAutoConvert","FormatValues","FormTheme","FoxHReduce","FractionLine","FrameInset","Frameless","FromDate","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","FullAxes","FullOptions","FunctionPoles","GeneratedCellStyles","Generic","GeoGraphValuePlot","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GestureHandlerTag","GetBoundingBoxSizePacket","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","GlobalPreferences","GlobalSession","GradientFittedMesh","GraphElementData","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGridBox","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsSpacing","GraphicsStyle","GraphLayerLabels","GraphRoot","GraphStyle","GreekStyle","GridBaseline","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridElementStyleOptions","GridFrame","GridFrameMargins","GridVideo","GroupOpenerColor","GroupOpenerInsideFrame","GroupTogetherGrouping","GroupTogetherNestedGrouping","HeadCompose","Headers","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Hessian","HexahedronBox","HexahedronBoxOptions","HiddenSurface","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalScrollPosition","HTMLSave","HyperlinkCreationSettings","HyphenationOptions","IconizedObject","IgnoreIsotopes","IgnoreSpellCheck","IgnoreStereochemistry","ImageCache","ImageCacheValid","ImageEditMode","ImageMarkers","ImageOffset","ImageRangeCache","ImageRegion","ImageRotated","ImageSizeCache","ImageSizeRaw","ImageStitch","ImportAutoReplacements","IncludeFileExtension","IncludeSingularTerm","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndexCreationOptions","IndexTag","Inequality","InexactNumbers","InformationData","InformationDataGrid","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InlineCounterAssignments","InlineCounterIncrements","InlineRules","InputFieldBox","InputFieldBoxOptions","InputGrouping","InputSettings","InputToBoxFormPacket","InsertionPointObject","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","InstanceNormalizationLayer","Integral","InterfaceSwitched","Interlaced","InterpolationPrecision","InterpretTemplate","InterruptSettings","Into","InverseBilateralZTransform","InvisibleApplication","InvisibleTimes","IsomorphicSubgraphQ","ItemBox","ItemBoxOptions","Jacobian","JoinedCurveBox","JoinedCurveBoxOptions","K","KernelExecute","KernelSpeed","Ket","LabeledSlider","LambertW","LanguageOptions","Launch","LayoutInformation","LegendreType","Lexicographic","LicenseID","LightSources","LimitsPositioningTokens","Line3DBox","Line3DBoxOptions","LinearFilter","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineOpacity","LineWrapParts","LinkConnectedQ","LinkError","LinkFlush","LinkHost","LinkMode","LinkOpen","LinkOptions","LinkReadHeld","LinkService","LinkWriteHeld","Listen","ListPickerBoxBackground","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","Literal","LiteralSearch","LocalizeDefinitions","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPaneBox","LocatorPaneBoxOptions","LongEqual","LongestMatch","LongForm","Loopback","LUBackSubstitution","MachineID","MachineName","MacintoshSystemPageSetup","MainSolve","MaintainDynamicCaches","MakeRules","MatchLocalNameQ","Material","MathematicaNotation","MathMLText","MaxBend","MaxPoints","Menu","MenuAppearance","MenuEvaluator","MenuItem","MenuList","MergeDifferences","MeshRange","MessageObject","MessageOptions","MessagesNotebook","MetaCharacters","MethodOptions","MIMETypeToFormatList","MinPointSeparation","MinRecursion","MinSize","Mode","Modular","MoleculeFreeQ","MoleculeMatchQ","MonomialOrder","MouseAppearanceTag","MouseButtons","MousePointerNote","MultiaxisArrangement","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multiplicity","NamespaceBox","NamespaceBoxOptions","NBernoulliB","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NestedScriptRules","NetInformation","NetSharedArray","NetUnfold","NetworkPacketRecordingDuring","NewPrimitiveStyle","Next","NextScheduledTaskTime","NonAssociative","NormalGrouping","NotebookBrowseDirectory","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookFindReturnObject","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookInterfaceObject","NotebookOpenReturnObject","NotebookPath","NotebookPutReturnObject","NotebookResetGeneratedCells","NotebookSaveAs","NotebookSetupLayoutInformationPacket","NProductFactors","NSumTerms","NValues","ObjectExistsQ","OLEData","Open","OpenerBox","OpenerBoxOptions","OpenFunctionInspectorPacket","OpenSpecialOptions","OpenTemporary","OptionInspectorSettings","OptionQ","OptionsPacket","OptionValueBox","OptionValueBoxOptions","OutputAutoOverwrite","OutputFormData","OutputGrouping","OutputMathEditExpression","Over","OverlayBox","OverlayBoxOptions","OverlayVideo","Package","PackingMethod","PackPaclet","PacletDirectoryAdd","PacletDirectoryRemove","PacletInformation","PacletObjectQ","PacletSymbol","PacletUpdate","PageFooterLines","PageHeaderLines","PageHeight","PalettePath","PaneBox","PaneBoxOptions","PanelBox","PanelBoxOptions","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","Parameter","ParameterVariables","ParentConnect","ParentForm","Parenthesize","ParentList","PartialD","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PausedTime","PeriodicInterpolation","Perpendicular","PersistentValue","PickedElements","PickMode","PIDData","Pivoting","PixelConstrained","PlanarFaceList","Plot3Matrix","PlotDivision","PlotJoined","PlotRangeClipPlanesStyle","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointLight","Polygon3DBox","Polygon3DBoxOptions","PolygonBox","PolygonBoxOptions","PolygonHoleScale","PolygonIntersections","PolygonScale","PolyhedronBox","PolynomialForm","Polynomials","PolynomialSumOfSquaresList","PopupMenuBox","PopupMenuBoxOptions","PostScript","Precedence","PredictionRoot","PredictorInformation","PreferencesPath","Previous","PrimaryPlaceholder","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintPrecision","PrismBox","PrismBoxOptions","PrivateEvaluationOptions","PrivateFrontEndOptions","PrivatePaths","ProbabilityPr","ProcessStateDomain","ProcessTimeDomain","ProgressIndicatorBox","ProgressIndicatorBoxOptions","PromptForm","Properties","Property","PropertyList","PropertyValue","PyramidBox","PyramidBoxOptions","QuestionInterface","RadioButtonBox","RadioButtonBoxOptions","Random","RandomSeed","RangeSpecification","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","RationalFunctions","RawArray","RawMedium","ReactionBalance","ReactionBalancedQ","RebuildPacletData","RecognitionThreshold","RectangleBox","RectangleBoxOptions","RecurringDigitsForm","RefBox","ReferenceMarkers","ReferenceMarkerStyle","RegionCongruent","RegionFit","RegionSimilar","Reinstall","Release","RemoveAsynchronousTask","Removed","RemoveProperty","RemoveScheduledTask","RenderAll","RepeatedString","ReplaceHeldPart","ResetMenusPacket","ResetScheduledTask","ResolveContextAliases","ResourceAcquire","ResourceSubmissionObject","ResumePacket","ReturnCreatesNewCell","ReturnEntersInput","ReturnInputFormPacket","RotationBox","RotationBoxOptions","RoundImplies","RowBackgrounds","RowHeights","RuleCondition","RuleForm","RunScheduledTask","Saveable","SaveAutoDelete","ScaledMousePosition","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","ScreenRectangle","ScriptForm","ScriptLevel","ScriptRules","SectionGrouping","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionDebuggerTag","SelectionDuplicateCell","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SequenceAttentionLayer","SequenceForm","SequenceIndicesLayer","ServiceResponse","Setbacks","SetBoxFormNamesPacket","SetEvaluationNotebook","SetFileFormatProperties","SetFileLoadingContext","SetNotebookStatusLine","SetOptionsPacket","SetProperty","SetSecuredAuthenticationKey","SetSpeechParametersPacket","SetterBox","SetterBoxOptions","SetValue","Shading","ShortestMatch","ShowAutoConvert","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowGroupOpenCloseIcon","ShowInvisibleCharacters","ShowPredictiveInterface","ShowShortBoxForm","ShowSyntaxStyles","ShrinkWrapBoundingBox","SingleEvaluation","SingleLetterStyle","SingularValues","SkinStyle","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SnippetsVideo","SocialMediaData","Socket","SolidBoundaryLoadValue","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolveDelayed","SoundAndGraphics","Space","SpaceForm","SpanAdjustments","SpanCharacterRounding","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArrayQ","SpatialEstimate","SpatialEstimatorFunction","SpatialNoiseLevel","SpatialTrendFunction","SpeakTextPacket","SpellingDictionaries","SpellingDictionariesPath","SpellingSuggestionsPacket","SphereBox","SpotLight","StartAsynchronousTask","StartScheduledTask","StartupSound","StateDimensions","StopAsynchronousTask","StopScheduledTask","StringBreak","StringByteCount","StripStyleOnPaste","StrokeForm","StructuredArray","StructuredArrayHeadQ","StyleBoxAutoDelete","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subscripted","SubValues","SurfaceAppearance","SurfaceColor","SurfaceGraphics","SuspendPacket","Syntax","SystemException","SystemGet","SystemHelpPath","SystemInformationData","SystemStub","SystemTest","Tab","TabFilling","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabViewBox","TabViewBoxOptions","TagBoxNote","TagStyle","TemplateArgBox","TemplateEvaluate","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemporaryVariable","TensorQ","TetrahedronBox","TetrahedronBoxOptions","TeXSave","Text3DBox","Text3DBoxOptions","TextBand","TextBoundingBox","TextBox","TextForm","TextLine","TextParagraph","TextStyle","ThisLink","TimeSystem","TimeSystemConvert","TimeWarpingCorrespondence","TimeWarpingDistance","TitleGrouping","ToColor","ToDate","ToFileName","Toggle","ToggleFalse","TogglerBox","TogglerBoxOptions","ToHeldExpression","TooBig","TooltipBox","TooltipBoxOptions","Torus","TotalHeight","TourVideo","TraceAction","TraceInternal","TraceLevel","TrackCellChangeTimes","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainTextContentDetector","TransparentColor","TrapEnterKey","TrapSelection","TreeElementLabel","TreeElementStyle","TreeLayout","TreeMapAt","TreeScan","TreeTraversalOrder","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","TypeDeclaration","UntrackedVariables","Up","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","URLFetch","URLFetchAsynchronous","URLSave","URLSaveAsynchronous","UseGraphicsRange","UserDefinedWavelet","Using","V2Get","Value","ValueBox","ValueBoxOptions","ValueForm","ValuesData","VariogramFunction","VariogramModel","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorScale","Verbose","VerboseConvertToPostScriptPacket","Version","VersionNumber","VertexChromaticNumber","VertexCoordinateRules","VertexLabeling","VertexRenderingFunction","Vertical","VerticalForm","ViewPointSelectorSettings","ViewPort","VirtualGroupData","VisibleCell","WaitAsynchronousTask","WaitUntil","WebColumn","WebItem","WebPageMetaInformation","WebRow","WholeCellGroupOpener","WindowMovable","WindowPersistentStyles","WindowSelected","WindowWidth","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WSCommandPacket","ZeroWidthTimes","[FormalX]$","$ActivationGroupID","$ActivationUserRegistered","$AddOnsDirectory","$AsynchronousTask","$BoxForms","$CloudConnection","$CloudSystemRootDirectory","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$ConditionHold","$ConfiguredKernels","$ContextAliases","$DefaultFont","$DefaultMailbox","$DefaultPath","$EntityStores","$FinancialDataSource","$FormatType","$GeoEntityTypes","$GeoLocationPrecision","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$InstallationDate","$InterfaceEnvironment","$LaunchDirectory","$LicenseProcesses","$LicenseSubprocesses","$LicenseType","$LinkSupported","$LoadedFiles","$MachineDomain","$MailSettings","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MinorReleaseNumber","$NetworkLicense","$Off","$OutputForms","$PatchLevelID","$PermissionsGroupBase","$PipeSupported","$PreferencesDirectory","$PrintForms","$PrintLiteral","$ProductInformation","$ProgramName","$RandomState","$RegisteredDeviceClasses","$RegisteredUserName","$RequesterCloudUserID","$RequesterCloudUserUUID","$ScheduledTask","$SecuredAuthenticationKeyTokens","$SetParentLink","$SoundDisplay","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SystemMemory","$TemporaryPrefix","$TextStyle","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentVersion","$UserName"}
POSTED BY: Andrew Meit
Posted 2 years ago

One thing I might suggest is that instead of just deleting TI and TR you use regular expressions to pull out the first part of a StyleBox expression.

POSTED BY: Eric Rimbey
Posted 2 years ago

Eric, thanks for your posting and thanks for agreeing the boxes returned are malformed. Yes, as you see in my code, am already doing ad-hoc edge cases. ;-) The code-assist does usage parsing correctly as you can see. I have contacted tech support to see if they can help me.

POSTED BY: Andrew Meit
Posted 2 years ago

As far as I can tell, the InformationData structure returned for those symbols is malformed. I think that you're just going to need to come up with an ad-hoc case for each of them.

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract